; LLVM IR from pixelsdb/mini-pixels :: pixels-core/lib/utils (EncodingUtils)

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

%class.EncodingUtils = type { ptr, ptr }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EncodingUtils10readLongBEERKSt10shared_ptrI10ByteBufferEPliii(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %15 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %16 = load i32, ptr %11, align 4, !tbaa !9
  %17 = load i32, ptr %12, align 4, !tbaa !9
  %18 = mul nsw i32 %16, %17
  store i32 %18, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #4
  %21 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = load i32, ptr %13, align 4, !tbaa !9
  %24 = call noundef i32 @_ZN10ByteBuffer4readEPhjj(ptr noundef nonnull align 8 dereferenceable(62) %20, ptr noundef %22, i32 noundef 0, i32 noundef %23)
  store i32 %24, ptr %14, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %29, %6
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = load i32, ptr %13, align 4, !tbaa !9
  %28 = icmp ne i32 %26, %27
  br i1 %28, label %29, label %41

29:                                               ; preds = %25
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %30) #4
  %32 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = sub nsw i32 %35, %36
  %38 = call noundef i32 @_ZN10ByteBuffer4readEPhjj(ptr noundef nonnull align 8 dereferenceable(62) %31, ptr noundef %33, i32 noundef %34, i32 noundef %37)
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = add nsw i32 %39, %38
  store i32 %40, ptr %14, align 4, !tbaa !9
  br label %25, !llvm.loop !13

41:                                               ; preds = %25
  %42 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %42, label %483 [
    i32 1, label %43
    i32 2, label %140
    i32 3, label %189
    i32 4, label %238
    i32 5, label %287
    i32 6, label %336
    i32 7, label %385
    i32 8, label %434
  ]

43:                                               ; preds = %41
  %44 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %45, i64 0
  %47 = load i8, ptr %46, align 1, !tbaa !15
  %48 = zext i8 %47 to i32
  %49 = and i32 %48, 255
  %50 = sext i32 %49 to i64
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = add nsw i32 %52, 0
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i64, ptr %51, i64 %54
  store i64 %50, ptr %55, align 8, !tbaa !16
  %56 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = getelementptr inbounds i8, ptr %57, i64 1
  %59 = load i8, ptr %58, align 1, !tbaa !15
  %60 = zext i8 %59 to i32
  %61 = and i32 %60, 255
  %62 = sext i32 %61 to i64
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i64, ptr %63, i64 %66
  store i64 %62, ptr %67, align 8, !tbaa !16
  %68 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = getelementptr inbounds i8, ptr %69, i64 2
  %71 = load i8, ptr %70, align 1, !tbaa !15
  %72 = zext i8 %71 to i32
  %73 = and i32 %72, 255
  %74 = sext i32 %73 to i64
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = add nsw i32 %76, 2
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i64, ptr %75, i64 %78
  store i64 %74, ptr %79, align 8, !tbaa !16
  %80 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds i8, ptr %81, i64 3
  %83 = load i8, ptr %82, align 1, !tbaa !15
  %84 = zext i8 %83 to i32
  %85 = and i32 %84, 255
  %86 = sext i32 %85 to i64
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = add nsw i32 %88, 3
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i64, ptr %87, i64 %90
  store i64 %86, ptr %91, align 8, !tbaa !16
  %92 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds i8, ptr %93, i64 4
  %95 = load i8, ptr %94, align 1, !tbaa !15
  %96 = zext i8 %95 to i32
  %97 = and i32 %96, 255
  %98 = sext i32 %97 to i64
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = add nsw i32 %100, 4
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i64, ptr %99, i64 %102
  store i64 %98, ptr %103, align 8, !tbaa !16
  %104 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  %106 = getelementptr inbounds i8, ptr %105, i64 5
  %107 = load i8, ptr %106, align 1, !tbaa !15
  %108 = zext i8 %107 to i32
  %109 = and i32 %108, 255
  %110 = sext i32 %109 to i64
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = add nsw i32 %112, 5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i64, ptr %111, i64 %114
  store i64 %110, ptr %115, align 8, !tbaa !16
  %116 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = getelementptr inbounds i8, ptr %117, i64 6
  %119 = load i8, ptr %118, align 1, !tbaa !15
  %120 = zext i8 %119 to i32
  %121 = and i32 %120, 255
  %122 = sext i32 %121 to i64
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = add nsw i32 %124, 6
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i64, ptr %123, i64 %126
  store i64 %122, ptr %127, align 8, !tbaa !16
  %128 = getelementptr inbounds %class.EncodingUtils, ptr %15, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = getelementptr inbounds i8, ptr %129, i64 7
  %131 = load i8, ptr %130, align 1, !tbaa !15
  %132 = zext i8 %131 to i32
  %133 = and i32 %132, 255
  %134 = sext i32 %133 to i64
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = add nsw i32 %136, 7
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i64, ptr %135, i64 %138
  store i64 %134, ptr %139, align 8, !tbaa !16
  br label %484

140:                                              ; preds = %41
  %141 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = add nsw i32 %143, 0
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i64, ptr %142, i64 %145
  store i64 %141, ptr %146, align 8, !tbaa !16
  %147 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 2)
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i64, ptr %148, i64 %151
  store i64 %147, ptr %152, align 8, !tbaa !16
  %153 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 4)
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = add nsw i32 %155, 2
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i64, ptr %154, i64 %157
  store i64 %153, ptr %158, align 8, !tbaa !16
  %159 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 6)
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load i32, ptr %10, align 4, !tbaa !9
  %162 = add nsw i32 %161, 3
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i64, ptr %160, i64 %163
  store i64 %159, ptr %164, align 8, !tbaa !16
  %165 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 8)
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = add nsw i32 %167, 4
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i64, ptr %166, i64 %169
  store i64 %165, ptr %170, align 8, !tbaa !16
  %171 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 10)
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = add nsw i32 %173, 5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i64, ptr %172, i64 %175
  store i64 %171, ptr %176, align 8, !tbaa !16
  %177 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 12)
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = add nsw i32 %179, 6
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i64, ptr %178, i64 %181
  store i64 %177, ptr %182, align 8, !tbaa !16
  %183 = call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 14)
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = load i32, ptr %10, align 4, !tbaa !9
  %186 = add nsw i32 %185, 7
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i64, ptr %184, i64 %187
  store i64 %183, ptr %188, align 8, !tbaa !16
  br label %484

189:                                              ; preds = %41
  %190 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = load i32, ptr %10, align 4, !tbaa !9
  %193 = add nsw i32 %192, 0
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i64, ptr %191, i64 %194
  store i64 %190, ptr %195, align 8, !tbaa !16
  %196 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 3)
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = load i32, ptr %10, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i64, ptr %197, i64 %200
  store i64 %196, ptr %201, align 8, !tbaa !16
  %202 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 6)
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = add nsw i32 %204, 2
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds i64, ptr %203, i64 %206
  store i64 %202, ptr %207, align 8, !tbaa !16
  %208 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 9)
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = add nsw i32 %210, 3
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i64, ptr %209, i64 %212
  store i64 %208, ptr %213, align 8, !tbaa !16
  %214 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 12)
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = load i32, ptr %10, align 4, !tbaa !9
  %217 = add nsw i32 %216, 4
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds i64, ptr %215, i64 %218
  store i64 %214, ptr %219, align 8, !tbaa !16
  %220 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 15)
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = add nsw i32 %222, 5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds i64, ptr %221, i64 %224
  store i64 %220, ptr %225, align 8, !tbaa !16
  %226 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 18)
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = load i32, ptr %10, align 4, !tbaa !9
  %229 = add nsw i32 %228, 6
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds i64, ptr %227, i64 %230
  store i64 %226, ptr %231, align 8, !tbaa !16
  %232 = call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 21)
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = load i32, ptr %10, align 4, !tbaa !9
  %235 = add nsw i32 %234, 7
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds i64, ptr %233, i64 %236
  store i64 %232, ptr %237, align 8, !tbaa !16
  br label %484

238:                                              ; preds = %41
  %239 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = add nsw i32 %241, 0
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds i64, ptr %240, i64 %243
  store i64 %239, ptr %244, align 8, !tbaa !16
  %245 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 4)
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = load i32, ptr %10, align 4, !tbaa !9
  %248 = add nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i64, ptr %246, i64 %249
  store i64 %245, ptr %250, align 8, !tbaa !16
  %251 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 8)
  %252 = load ptr, ptr %9, align 8, !tbaa !5
  %253 = load i32, ptr %10, align 4, !tbaa !9
  %254 = add nsw i32 %253, 2
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds i64, ptr %252, i64 %255
  store i64 %251, ptr %256, align 8, !tbaa !16
  %257 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 12)
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = add nsw i32 %259, 3
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds i64, ptr %258, i64 %261
  store i64 %257, ptr %262, align 8, !tbaa !16
  %263 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 16)
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = load i32, ptr %10, align 4, !tbaa !9
  %266 = add nsw i32 %265, 4
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds i64, ptr %264, i64 %267
  store i64 %263, ptr %268, align 8, !tbaa !16
  %269 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 20)
  %270 = load ptr, ptr %9, align 8, !tbaa !5
  %271 = load i32, ptr %10, align 4, !tbaa !9
  %272 = add nsw i32 %271, 5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds i64, ptr %270, i64 %273
  store i64 %269, ptr %274, align 8, !tbaa !16
  %275 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 24)
  %276 = load ptr, ptr %9, align 8, !tbaa !5
  %277 = load i32, ptr %10, align 4, !tbaa !9
  %278 = add nsw i32 %277, 6
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds i64, ptr %276, i64 %279
  store i64 %275, ptr %280, align 8, !tbaa !16
  %281 = call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 28)
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = load i32, ptr %10, align 4, !tbaa !9
  %284 = add nsw i32 %283, 7
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds i64, ptr %282, i64 %285
  store i64 %281, ptr %286, align 8, !tbaa !16
  br label %484

287:                                              ; preds = %41
  %288 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = load i32, ptr %10, align 4, !tbaa !9
  %291 = add nsw i32 %290, 0
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds i64, ptr %289, i64 %292
  store i64 %288, ptr %293, align 8, !tbaa !16
  %294 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 5)
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = load i32, ptr %10, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds i64, ptr %295, i64 %298
  store i64 %294, ptr %299, align 8, !tbaa !16
  %300 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 10)
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  %302 = load i32, ptr %10, align 4, !tbaa !9
  %303 = add nsw i32 %302, 2
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds i64, ptr %301, i64 %304
  store i64 %300, ptr %305, align 8, !tbaa !16
  %306 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 15)
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = load i32, ptr %10, align 4, !tbaa !9
  %309 = add nsw i32 %308, 3
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds i64, ptr %307, i64 %310
  store i64 %306, ptr %311, align 8, !tbaa !16
  %312 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 20)
  %313 = load ptr, ptr %9, align 8, !tbaa !5
  %314 = load i32, ptr %10, align 4, !tbaa !9
  %315 = add nsw i32 %314, 4
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds i64, ptr %313, i64 %316
  store i64 %312, ptr %317, align 8, !tbaa !16
  %318 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 25)
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = load i32, ptr %10, align 4, !tbaa !9
  %321 = add nsw i32 %320, 5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds i64, ptr %319, i64 %322
  store i64 %318, ptr %323, align 8, !tbaa !16
  %324 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 30)
  %325 = load ptr, ptr %9, align 8, !tbaa !5
  %326 = load i32, ptr %10, align 4, !tbaa !9
  %327 = add nsw i32 %326, 6
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds i64, ptr %325, i64 %328
  store i64 %324, ptr %329, align 8, !tbaa !16
  %330 = call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 35)
  %331 = load ptr, ptr %9, align 8, !tbaa !5
  %332 = load i32, ptr %10, align 4, !tbaa !9
  %333 = add nsw i32 %332, 7
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds i64, ptr %331, i64 %334
  store i64 %330, ptr %335, align 8, !tbaa !16
  br label %484

336:                                              ; preds = %41
  %337 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
  %338 = load ptr, ptr %9, align 8, !tbaa !5
  %339 = load i32, ptr %10, align 4, !tbaa !9
  %340 = add nsw i32 %339, 0
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds i64, ptr %338, i64 %341
  store i64 %337, ptr %342, align 8, !tbaa !16
  %343 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 6)
  %344 = load ptr, ptr %9, align 8, !tbaa !5
  %345 = load i32, ptr %10, align 4, !tbaa !9
  %346 = add nsw i32 %345, 1
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds i64, ptr %344, i64 %347
  store i64 %343, ptr %348, align 8, !tbaa !16
  %349 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 12)
  %350 = load ptr, ptr %9, align 8, !tbaa !5
  %351 = load i32, ptr %10, align 4, !tbaa !9
  %352 = add nsw i32 %351, 2
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds i64, ptr %350, i64 %353
  store i64 %349, ptr %354, align 8, !tbaa !16
  %355 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 18)
  %356 = load ptr, ptr %9, align 8, !tbaa !5
  %357 = load i32, ptr %10, align 4, !tbaa !9
  %358 = add nsw i32 %357, 3
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds i64, ptr %356, i64 %359
  store i64 %355, ptr %360, align 8, !tbaa !16
  %361 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 24)
  %362 = load ptr, ptr %9, align 8, !tbaa !5
  %363 = load i32, ptr %10, align 4, !tbaa !9
  %364 = add nsw i32 %363, 4
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds i64, ptr %362, i64 %365
  store i64 %361, ptr %366, align 8, !tbaa !16
  %367 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 30)
  %368 = load ptr, ptr %9, align 8, !tbaa !5
  %369 = load i32, ptr %10, align 4, !tbaa !9
  %370 = add nsw i32 %369, 5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds i64, ptr %368, i64 %371
  store i64 %367, ptr %372, align 8, !tbaa !16
  %373 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 36)
  %374 = load ptr, ptr %9, align 8, !tbaa !5
  %375 = load i32, ptr %10, align 4, !tbaa !9
  %376 = add nsw i32 %375, 6
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds i64, ptr %374, i64 %377
  store i64 %373, ptr %378, align 8, !tbaa !16
  %379 = call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 42)
  %380 = load ptr, ptr %9, align 8, !tbaa !5
  %381 = load i32, ptr %10, align 4, !tbaa !9
  %382 = add nsw i32 %381, 7
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds i64, ptr %380, i64 %383
  store i64 %379, ptr %384, align 8, !tbaa !16
  br label %484

385:                                              ; preds = %41
  %386 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
  %387 = load ptr, ptr %9, align 8, !tbaa !5
  %388 = load i32, ptr %10, align 4, !tbaa !9
  %389 = add nsw i32 %388, 0
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds i64, ptr %387, i64 %390
  store i64 %386, ptr %391, align 8, !tbaa !16
  %392 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 7)
  %393 = load ptr, ptr %9, align 8, !tbaa !5
  %394 = load i32, ptr %10, align 4, !tbaa !9
  %395 = add nsw i32 %394, 1
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds i64, ptr %393, i64 %396
  store i64 %392, ptr %397, align 8, !tbaa !16
  %398 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 14)
  %399 = load ptr, ptr %9, align 8, !tbaa !5
  %400 = load i32, ptr %10, align 4, !tbaa !9
  %401 = add nsw i32 %400, 2
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds i64, ptr %399, i64 %402
  store i64 %398, ptr %403, align 8, !tbaa !16
  %404 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 21)
  %405 = load ptr, ptr %9, align 8, !tbaa !5
  %406 = load i32, ptr %10, align 4, !tbaa !9
  %407 = add nsw i32 %406, 3
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds i64, ptr %405, i64 %408
  store i64 %404, ptr %409, align 8, !tbaa !16
  %410 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 28)
  %411 = load ptr, ptr %9, align 8, !tbaa !5
  %412 = load i32, ptr %10, align 4, !tbaa !9
  %413 = add nsw i32 %412, 4
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds i64, ptr %411, i64 %414
  store i64 %410, ptr %415, align 8, !tbaa !16
  %416 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 35)
  %417 = load ptr, ptr %9, align 8, !tbaa !5
  %418 = load i32, ptr %10, align 4, !tbaa !9
  %419 = add nsw i32 %418, 5
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds i64, ptr %417, i64 %420
  store i64 %416, ptr %421, align 8, !tbaa !16
  %422 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 42)
  %423 = load ptr, ptr %9, align 8, !tbaa !5
  %424 = load i32, ptr %10, align 4, !tbaa !9
  %425 = add nsw i32 %424, 6
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds i64, ptr %423, i64 %426
  store i64 %422, ptr %427, align 8, !tbaa !16
  %428 = call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 49)
  %429 = load ptr, ptr %9, align 8, !tbaa !5
  %430 = load i32, ptr %10, align 4, !tbaa !9
  %431 = add nsw i32 %430, 7
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds i64, ptr %429, i64 %432
  store i64 %428, ptr %433, align 8, !tbaa !16
  br label %484

434:                                              ; preds = %41
  %435 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
  %436 = load ptr, ptr %9, align 8, !tbaa !5
  %437 = load i32, ptr %10, align 4, !tbaa !9
  %438 = add nsw i32 %437, 0
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds i64, ptr %436, i64 %439
  store i64 %435, ptr %440, align 8, !tbaa !16
  %441 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 8)
  %442 = load ptr, ptr %9, align 8, !tbaa !5
  %443 = load i32, ptr %10, align 4, !tbaa !9
  %444 = add nsw i32 %443, 1
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds i64, ptr %442, i64 %445
  store i64 %441, ptr %446, align 8, !tbaa !16
  %447 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 16)
  %448 = load ptr, ptr %9, align 8, !tbaa !5
  %449 = load i32, ptr %10, align 4, !tbaa !9
  %450 = add nsw i32 %449, 2
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds i64, ptr %448, i64 %451
  store i64 %447, ptr %452, align 8, !tbaa !16
  %453 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 24)
  %454 = load ptr, ptr %9, align 8, !tbaa !5
  %455 = load i32, ptr %10, align 4, !tbaa !9
  %456 = add nsw i32 %455, 3
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds i64, ptr %454, i64 %457
  store i64 %453, ptr %458, align 8, !tbaa !16
  %459 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 32)
  %460 = load ptr, ptr %9, align 8, !tbaa !5
  %461 = load i32, ptr %10, align 4, !tbaa !9
  %462 = add nsw i32 %461, 4
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds i64, ptr %460, i64 %463
  store i64 %459, ptr %464, align 8, !tbaa !16
  %465 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 40)
  %466 = load ptr, ptr %9, align 8, !tbaa !5
  %467 = load i32, ptr %10, align 4, !tbaa !9
  %468 = add nsw i32 %467, 5
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds i64, ptr %466, i64 %469
  store i64 %465, ptr %470, align 8, !tbaa !16
  %471 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 48)
  %472 = load ptr, ptr %9, align 8, !tbaa !5
  %473 = load i32, ptr %10, align 4, !tbaa !9
  %474 = add nsw i32 %473, 6
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds i64, ptr %472, i64 %475
  store i64 %471, ptr %476, align 8, !tbaa !16
  %477 = call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 56)
  %478 = load ptr, ptr %9, align 8, !tbaa !5
  %479 = load i32, ptr %10, align 4, !tbaa !9
  %480 = add nsw i32 %479, 7
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds i64, ptr %478, i64 %481
  store i64 %477, ptr %482, align 8, !tbaa !16
  br label %484

483:                                              ; preds = %41
  br label %484

484:                                              ; preds = %483, %434, %385, %336, %287, %238, %189, %140, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret void
}

declare noundef i32 @_ZN10ByteBuffer4readEPhjj(ptr noundef nonnull align 8 dereferenceable(62), ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS13EncodingUtils", !6, i64 0, !6, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EncodingUtils10readLongBEERKSt10shared_ptrI10ByteBufferEPliii(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef writeonly %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 align 2 {
  %7 = mul nsw i32 %5, %4
  %8 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #3
  %9 = load ptr, ptr %0, align 8, !tbaa !5
  %10 = tail call noundef i32 @_ZN10ByteBuffer4readEPhjj(ptr noundef nonnull align 8 dereferenceable(62) %8, ptr noundef %9, i32 noundef 0, i32 noundef %7)
  %.not141 = icmp eq i32 %10, %7
  br i1 %.not141, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %6, %.lr.ph
  %.0142 = phi i32 [ %15, %.lr.ph ], [ %10, %6 ]
  %11 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #3
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = sub nsw i32 %7, %.0142
  %14 = tail call noundef i32 @_ZN10ByteBuffer4readEPhjj(ptr noundef nonnull align 8 dereferenceable(62) %11, ptr noundef %12, i32 noundef %.0142, i32 noundef %13)
  %15 = add nsw i32 %14, %.0142
  %.not = icmp eq i32 %15, %7
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !10

._crit_edge:                                      ; preds = %.lr.ph, %6
  switch i32 %5, label %169 [
    i32 1, label %16
    i32 2, label %49
    i32 3, label %66
    i32 4, label %83
    i32 5, label %100
    i32 6, label %117
    i32 7, label %134
    i32 8, label %151
  ]

16:                                               ; preds = %._crit_edge
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  %18 = load i8, ptr %17, align 1, !tbaa !12
  %19 = zext i8 %18 to i64
  %20 = sext i32 %3 to i64
  %21 = getelementptr inbounds i64, ptr %2, i64 %20
  store i64 %19, ptr %21, align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %17, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !12
  %24 = zext i8 %23 to i64
  %25 = getelementptr i8, ptr %21, i64 8
  store i64 %24, ptr %25, align 8, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %17, i64 2
  %27 = load i8, ptr %26, align 1, !tbaa !12
  %28 = zext i8 %27 to i64
  %29 = getelementptr i8, ptr %21, i64 16
  store i64 %28, ptr %29, align 8, !tbaa !13
  %30 = getelementptr inbounds i8, ptr %17, i64 3
  %31 = load i8, ptr %30, align 1, !tbaa !12
  %32 = zext i8 %31 to i64
  %33 = getelementptr i8, ptr %21, i64 24
  store i64 %32, ptr %33, align 8, !tbaa !13
  %34 = getelementptr inbounds i8, ptr %17, i64 4
  %35 = load i8, ptr %34, align 1, !tbaa !12
  %36 = zext i8 %35 to i64
  %37 = getelementptr i8, ptr %21, i64 32
  store i64 %36, ptr %37, align 8, !tbaa !13
  %38 = getelementptr inbounds i8, ptr %17, i64 5
  %39 = load i8, ptr %38, align 1, !tbaa !12
  %40 = zext i8 %39 to i64
  %41 = getelementptr i8, ptr %21, i64 40
  store i64 %40, ptr %41, align 8, !tbaa !13
  %42 = getelementptr inbounds i8, ptr %17, i64 6
  %43 = load i8, ptr %42, align 1, !tbaa !12
  %44 = zext i8 %43 to i64
  %45 = getelementptr i8, ptr %21, i64 48
  store i64 %44, ptr %45, align 8, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %17, i64 7
  %47 = load i8, ptr %46, align 1, !tbaa !12
  %48 = zext i8 %47 to i64
  br label %.sink.split

49:                                               ; preds = %._crit_edge
  %50 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %51 = sext i32 %3 to i64
  %52 = getelementptr inbounds i64, ptr %2, i64 %51
  store i64 %50, ptr %52, align 8, !tbaa !13
  %53 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 2)
  %54 = getelementptr i8, ptr %52, i64 8
  store i64 %53, ptr %54, align 8, !tbaa !13
  %55 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 4)
  %56 = getelementptr i8, ptr %52, i64 16
  store i64 %55, ptr %56, align 8, !tbaa !13
  %57 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 6)
  %58 = getelementptr i8, ptr %52, i64 24
  store i64 %57, ptr %58, align 8, !tbaa !13
  %59 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 8)
  %60 = getelementptr i8, ptr %52, i64 32
  store i64 %59, ptr %60, align 8, !tbaa !13
  %61 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 10)
  %62 = getelementptr i8, ptr %52, i64 40
  store i64 %61, ptr %62, align 8, !tbaa !13
  %63 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 12)
  %64 = getelementptr i8, ptr %52, i64 48
  store i64 %63, ptr %64, align 8, !tbaa !13
  %65 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 14)
  br label %.sink.split

66:                                               ; preds = %._crit_edge
  %67 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %68 = sext i32 %3 to i64
  %69 = getelementptr inbounds i64, ptr %2, i64 %68
  store i64 %67, ptr %69, align 8, !tbaa !13
  %70 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 3)
  %71 = getelementptr i8, ptr %69, i64 8
  store i64 %70, ptr %71, align 8, !tbaa !13
  %72 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 6)
  %73 = getelementptr i8, ptr %69, i64 16
  store i64 %72, ptr %73, align 8, !tbaa !13
  %74 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 9)
  %75 = getelementptr i8, ptr %69, i64 24
  store i64 %74, ptr %75, align 8, !tbaa !13
  %76 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 12)
  %77 = getelementptr i8, ptr %69, i64 32
  store i64 %76, ptr %77, align 8, !tbaa !13
  %78 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 15)
  %79 = getelementptr i8, ptr %69, i64 40
  store i64 %78, ptr %79, align 8, !tbaa !13
  %80 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 18)
  %81 = getelementptr i8, ptr %69, i64 48
  store i64 %80, ptr %81, align 8, !tbaa !13
  %82 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 21)
  br label %.sink.split

83:                                               ; preds = %._crit_edge
  %84 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %85 = sext i32 %3 to i64
  %86 = getelementptr inbounds i64, ptr %2, i64 %85
  store i64 %84, ptr %86, align 8, !tbaa !13
  %87 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 4)
  %88 = getelementptr i8, ptr %86, i64 8
  store i64 %87, ptr %88, align 8, !tbaa !13
  %89 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 8)
  %90 = getelementptr i8, ptr %86, i64 16
  store i64 %89, ptr %90, align 8, !tbaa !13
  %91 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 12)
  %92 = getelementptr i8, ptr %86, i64 24
  store i64 %91, ptr %92, align 8, !tbaa !13
  %93 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 16)
  %94 = getelementptr i8, ptr %86, i64 32
  store i64 %93, ptr %94, align 8, !tbaa !13
  %95 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 20)
  %96 = getelementptr i8, ptr %86, i64 40
  store i64 %95, ptr %96, align 8, !tbaa !13
  %97 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 24)
  %98 = getelementptr i8, ptr %86, i64 48
  store i64 %97, ptr %98, align 8, !tbaa !13
  %99 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 28)
  br label %.sink.split

100:                                              ; preds = %._crit_edge
  %101 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %102 = sext i32 %3 to i64
  %103 = getelementptr inbounds i64, ptr %2, i64 %102
  store i64 %101, ptr %103, align 8, !tbaa !13
  %104 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 5)
  %105 = getelementptr i8, ptr %103, i64 8
  store i64 %104, ptr %105, align 8, !tbaa !13
  %106 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 10)
  %107 = getelementptr i8, ptr %103, i64 16
  store i64 %106, ptr %107, align 8, !tbaa !13
  %108 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 15)
  %109 = getelementptr i8, ptr %103, i64 24
  store i64 %108, ptr %109, align 8, !tbaa !13
  %110 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 20)
  %111 = getelementptr i8, ptr %103, i64 32
  store i64 %110, ptr %111, align 8, !tbaa !13
  %112 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 25)
  %113 = getelementptr i8, ptr %103, i64 40
  store i64 %112, ptr %113, align 8, !tbaa !13
  %114 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 30)
  %115 = getelementptr i8, ptr %103, i64 48
  store i64 %114, ptr %115, align 8, !tbaa !13
  %116 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 35)
  br label %.sink.split

117:                                              ; preds = %._crit_edge
  %118 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %119 = sext i32 %3 to i64
  %120 = getelementptr inbounds i64, ptr %2, i64 %119
  store i64 %118, ptr %120, align 8, !tbaa !13
  %121 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 6)
  %122 = getelementptr i8, ptr %120, i64 8
  store i64 %121, ptr %122, align 8, !tbaa !13
  %123 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 12)
  %124 = getelementptr i8, ptr %120, i64 16
  store i64 %123, ptr %124, align 8, !tbaa !13
  %125 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 18)
  %126 = getelementptr i8, ptr %120, i64 24
  store i64 %125, ptr %126, align 8, !tbaa !13
  %127 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 24)
  %128 = getelementptr i8, ptr %120, i64 32
  store i64 %127, ptr %128, align 8, !tbaa !13
  %129 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 30)
  %130 = getelementptr i8, ptr %120, i64 40
  store i64 %129, ptr %130, align 8, !tbaa !13
  %131 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 36)
  %132 = getelementptr i8, ptr %120, i64 48
  store i64 %131, ptr %132, align 8, !tbaa !13
  %133 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 42)
  br label %.sink.split

134:                                              ; preds = %._crit_edge
  %135 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %136 = sext i32 %3 to i64
  %137 = getelementptr inbounds i64, ptr %2, i64 %136
  store i64 %135, ptr %137, align 8, !tbaa !13
  %138 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 7)
  %139 = getelementptr i8, ptr %137, i64 8
  store i64 %138, ptr %139, align 8, !tbaa !13
  %140 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 14)
  %141 = getelementptr i8, ptr %137, i64 16
  store i64 %140, ptr %141, align 8, !tbaa !13
  %142 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 21)
  %143 = getelementptr i8, ptr %137, i64 24
  store i64 %142, ptr %143, align 8, !tbaa !13
  %144 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 28)
  %145 = getelementptr i8, ptr %137, i64 32
  store i64 %144, ptr %145, align 8, !tbaa !13
  %146 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 35)
  %147 = getelementptr i8, ptr %137, i64 40
  store i64 %146, ptr %147, align 8, !tbaa !13
  %148 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 42)
  %149 = getelementptr i8, ptr %137, i64 48
  store i64 %148, ptr %149, align 8, !tbaa !13
  %150 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 49)
  br label %.sink.split

151:                                              ; preds = %._crit_edge
  %152 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %153 = sext i32 %3 to i64
  %154 = getelementptr inbounds i64, ptr %2, i64 %153
  store i64 %152, ptr %154, align 8, !tbaa !13
  %155 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 8)
  %156 = getelementptr i8, ptr %154, i64 8
  store i64 %155, ptr %156, align 8, !tbaa !13
  %157 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 16)
  %158 = getelementptr i8, ptr %154, i64 16
  store i64 %157, ptr %158, align 8, !tbaa !13
  %159 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 24)
  %160 = getelementptr i8, ptr %154, i64 24
  store i64 %159, ptr %160, align 8, !tbaa !13
  %161 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 32)
  %162 = getelementptr i8, ptr %154, i64 32
  store i64 %161, ptr %162, align 8, !tbaa !13
  %163 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 40)
  %164 = getelementptr i8, ptr %154, i64 40
  store i64 %163, ptr %164, align 8, !tbaa !13
  %165 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 48)
  %166 = getelementptr i8, ptr %154, i64 48
  store i64 %165, ptr %166, align 8, !tbaa !13
  %167 = tail call noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 56)
  br label %.sink.split

.sink.split:                                      ; preds = %16, %49, %66, %83, %100, %117, %134, %151
  %.sink144 = phi ptr [ %154, %151 ], [ %137, %134 ], [ %120, %117 ], [ %103, %100 ], [ %86, %83 ], [ %69, %66 ], [ %52, %49 ], [ %21, %16 ]
  %.sink = phi i64 [ %167, %151 ], [ %150, %134 ], [ %133, %117 ], [ %116, %100 ], [ %99, %83 ], [ %82, %66 ], [ %65, %49 ], [ %48, %16 ]
  %168 = getelementptr i8, ptr %.sink144, i64 56
  store i64 %.sink, ptr %168, align 8, !tbaa !13
  br label %169

169:                                              ; preds = %.sink.split, %._crit_edge
  ret void
}

declare noundef i32 @_ZN10ByteBuffer4readEPhjj(ptr noundef nonnull align 8 dereferenceable(62), ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE2Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE3Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE4Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE5Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE6Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE7Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN13EncodingUtils11readLongBE8Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS13EncodingUtils", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}


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