; LLVM IR from intel/qpl :: sources/core-sw/src/filtering (qplc_unpack_8u)

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

%union.qplc_bit_byte_pool64_t = type { i64 }
%union.qplc_bit_byte_pool32_t = type { i32 }
%union.qplc_bit_byte_pool16_t = type { i16 }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @px_qplc_unpack_2u8u(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca %union.qplc_bit_byte_pool64_t, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca %union.qplc_bit_byte_pool32_t, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %union.qplc_bit_byte_pool16_t, align 2
  %21 = alloca ptr, align 8
  %22 = alloca i16, align 2
  %23 = alloca i32, align 4
  %24 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  store i64 217020518514230019, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #2
  store i8 3, ptr %11, align 1, !tbaa !13
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = icmp ult i32 0, %25
  br i1 %26, label %27, label %65

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #2
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load i8, ptr %28, align 1, !tbaa !13
  %30 = zext i8 %29 to i32
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = ashr i32 %30, %31
  %33 = trunc i32 %32 to i8
  store i8 %33, ptr %12, align 1, !tbaa !13
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i32 1
  store ptr %35, ptr %5, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %60, %27
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = icmp ugt i32 8, %37
  br i1 %38, label %39, label %61

39:                                               ; preds = %36
  %40 = load i8, ptr %12, align 1, !tbaa !13
  %41 = zext i8 %40 to i32
  %42 = load i8, ptr %11, align 1, !tbaa !13
  %43 = zext i8 %42 to i32
  %44 = and i32 %41, %43
  %45 = trunc i32 %44 to i8
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 %45, ptr %46, align 1, !tbaa !13
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i32 1
  store ptr %48, ptr %8, align 8, !tbaa !5
  %49 = load i8, ptr %12, align 1, !tbaa !13
  %50 = zext i8 %49 to i32
  %51 = ashr i32 %50, 2
  %52 = trunc i32 %51 to i8
  store i8 %52, ptr %12, align 1, !tbaa !13
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = add i32 %53, 2
  store i32 %54, ptr %7, align 4, !tbaa !9
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = add i32 %55, -1
  store i32 %56, ptr %6, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = icmp eq i32 0, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %39
  store i32 1, ptr %13, align 4
  br label %62

60:                                               ; preds = %39
  br label %36, !llvm.loop !14

61:                                               ; preds = %36
  store i32 0, ptr %13, align 4
  br label %62

62:                                               ; preds = %61, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #2
  %63 = load i32, ptr %13, align 4
  switch i32 %63, label %285 [
    i32 0, label %64
  ]

64:                                               ; preds = %62
  br label %65

65:                                               ; preds = %64, %4
  br label %66

66:                                               ; preds = %141, %65
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = icmp ugt i32 %67, 32
  br i1 %68, label %69, label %148

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %70, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !11
  store i64 %72, ptr %16, align 8, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %138, %69
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = icmp ult i32 %74, 4
  br i1 %75, label %76, label %141

76:                                               ; preds = %73
  %77 = load i64, ptr %16, align 8, !tbaa !11
  %78 = load i64, ptr %9, align 8, !tbaa !11
  %79 = and i64 %77, %78
  store i64 %79, ptr %14, align 8, !tbaa !13
  %80 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 0
  %81 = load i8, ptr %80, align 8, !tbaa !13
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = add i32 %83, 0
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %82, i64 %85
  store i8 %81, ptr %86, align 1, !tbaa !13
  %87 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 1
  %88 = load i8, ptr %87, align 1, !tbaa !13
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = add i32 %90, 4
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %89, i64 %92
  store i8 %88, ptr %93, align 1, !tbaa !13
  %94 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 2
  %95 = load i8, ptr %94, align 2, !tbaa !13
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = add i32 %97, 8
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds i8, ptr %96, i64 %99
  store i8 %95, ptr %100, align 1, !tbaa !13
  %101 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 3
  %102 = load i8, ptr %101, align 1, !tbaa !13
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = add i32 %104, 12
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds i8, ptr %103, i64 %106
  store i8 %102, ptr %107, align 1, !tbaa !13
  %108 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 4
  %109 = load i8, ptr %108, align 4, !tbaa !13
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = add i32 %111, 16
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds i8, ptr %110, i64 %113
  store i8 %109, ptr %114, align 1, !tbaa !13
  %115 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 5
  %116 = load i8, ptr %115, align 1, !tbaa !13
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = add i32 %118, 20
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %117, i64 %120
  store i8 %116, ptr %121, align 1, !tbaa !13
  %122 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 6
  %123 = load i8, ptr %122, align 2, !tbaa !13
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = add i32 %125, 24
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds i8, ptr %124, i64 %127
  store i8 %123, ptr %128, align 1, !tbaa !13
  %129 = getelementptr inbounds [8 x i8], ptr %14, i64 0, i64 7
  %130 = load i8, ptr %129, align 1, !tbaa !13
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = add i32 %132, 28
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %131, i64 %134
  store i8 %130, ptr %135, align 1, !tbaa !13
  %136 = load i64, ptr %16, align 8, !tbaa !11
  %137 = lshr i64 %136, 2
  store i64 %137, ptr %16, align 8, !tbaa !11
  br label %138

138:                                              ; preds = %76
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = add i32 %139, 1
  store i32 %140, ptr %10, align 4, !tbaa !9
  br label %73, !llvm.loop !16

141:                                              ; preds = %73
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i64 8
  store ptr %143, ptr %5, align 8, !tbaa !5
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 32
  store ptr %145, ptr %8, align 8, !tbaa !5
  %146 = load i32, ptr %6, align 4, !tbaa !9
  %147 = sub i32 %146, 32
  store i32 %147, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  br label %66, !llvm.loop !17

148:                                              ; preds = %66
  %149 = load i32, ptr %6, align 4, !tbaa !9
  %150 = icmp ugt i32 %149, 16
  br i1 %150, label %151, label %204

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %152, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #2
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  store i32 %154, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %194, %151
  %156 = load i32, ptr %10, align 4, !tbaa !9
  %157 = icmp ult i32 %156, 4
  br i1 %157, label %158, label %197

158:                                              ; preds = %155
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = load i64, ptr %9, align 8, !tbaa !11
  %162 = and i64 %160, %161
  %163 = trunc i64 %162 to i32
  store i32 %163, ptr %17, align 4, !tbaa !13
  %164 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 0
  %165 = load i8, ptr %164, align 4, !tbaa !13
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = add i32 %167, 0
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds i8, ptr %166, i64 %169
  store i8 %165, ptr %170, align 1, !tbaa !13
  %171 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 1
  %172 = load i8, ptr %171, align 1, !tbaa !13
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load i32, ptr %10, align 4, !tbaa !9
  %175 = add i32 %174, 4
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds i8, ptr %173, i64 %176
  store i8 %172, ptr %177, align 1, !tbaa !13
  %178 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 2
  %179 = load i8, ptr %178, align 2, !tbaa !13
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load i32, ptr %10, align 4, !tbaa !9
  %182 = add i32 %181, 8
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %180, i64 %183
  store i8 %179, ptr %184, align 1, !tbaa !13
  %185 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 3
  %186 = load i8, ptr %185, align 1, !tbaa !13
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = add i32 %188, 12
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds i8, ptr %187, i64 %190
  store i8 %186, ptr %191, align 1, !tbaa !13
  %192 = load i32, ptr %19, align 4, !tbaa !9
  %193 = lshr i32 %192, 2
  store i32 %193, ptr %19, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %158
  %195 = load i32, ptr %10, align 4, !tbaa !9
  %196 = add i32 %195, 1
  store i32 %196, ptr %10, align 4, !tbaa !9
  br label %155, !llvm.loop !18

197:                                              ; preds = %155
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds i8, ptr %198, i64 4
  store ptr %199, ptr %5, align 8, !tbaa !5
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %200, i64 16
  store ptr %201, ptr %8, align 8, !tbaa !5
  %202 = load i32, ptr %6, align 4, !tbaa !9
  %203 = sub i32 %202, 16
  store i32 %203, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #2
  br label %204

204:                                              ; preds = %197, %148
  %205 = load i32, ptr %6, align 4, !tbaa !9
  %206 = icmp ugt i32 %205, 8
  br i1 %206, label %207, label %248

207:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %208, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #2
  %209 = load ptr, ptr %21, align 8, !tbaa !5
  %210 = load i16, ptr %209, align 2, !tbaa !19
  store i16 %210, ptr %22, align 2, !tbaa !19
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %211

211:                                              ; preds = %238, %207
  %212 = load i32, ptr %10, align 4, !tbaa !9
  %213 = icmp ult i32 %212, 4
  br i1 %213, label %214, label %241

214:                                              ; preds = %211
  %215 = load i16, ptr %22, align 2, !tbaa !19
  %216 = zext i16 %215 to i64
  %217 = load i64, ptr %9, align 8, !tbaa !11
  %218 = and i64 %216, %217
  %219 = trunc i64 %218 to i16
  store i16 %219, ptr %20, align 2, !tbaa !13
  %220 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  %221 = load i8, ptr %220, align 2, !tbaa !13
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = load i32, ptr %10, align 4, !tbaa !9
  %224 = add i32 %223, 0
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds i8, ptr %222, i64 %225
  store i8 %221, ptr %226, align 1, !tbaa !13
  %227 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
  %228 = load i8, ptr %227, align 1, !tbaa !13
  %229 = load ptr, ptr %8, align 8, !tbaa !5
  %230 = load i32, ptr %10, align 4, !tbaa !9
  %231 = add i32 %230, 4
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds i8, ptr %229, i64 %232
  store i8 %228, ptr %233, align 1, !tbaa !13
  %234 = load i16, ptr %22, align 2, !tbaa !19
  %235 = zext i16 %234 to i32
  %236 = ashr i32 %235, 2
  %237 = trunc i32 %236 to i16
  store i16 %237, ptr %22, align 2, !tbaa !19
  br label %238

238:                                              ; preds = %214
  %239 = load i32, ptr %10, align 4, !tbaa !9
  %240 = add i32 %239, 1
  store i32 %240, ptr %10, align 4, !tbaa !9
  br label %211, !llvm.loop !21

241:                                              ; preds = %211
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds i8, ptr %242, i64 2
  store ptr %243, ptr %5, align 8, !tbaa !5
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = getelementptr inbounds i8, ptr %244, i64 8
  store ptr %245, ptr %8, align 8, !tbaa !5
  %246 = load i32, ptr %6, align 4, !tbaa !9
  %247 = sub i32 %246, 8
  store i32 %247, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #2
  br label %248

248:                                              ; preds = %241, %204
  %249 = load i32, ptr %6, align 4, !tbaa !9
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %284

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #2
  store i32 4, ptr %23, align 4, !tbaa !9
  store i8 3, ptr %11, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #2
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = load i8, ptr %252, align 1, !tbaa !13
  store i8 %253, ptr %24, align 1, !tbaa !13
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %254

254:                                              ; preds = %280, %251
  %255 = load i32, ptr %10, align 4, !tbaa !9
  %256 = load i32, ptr %6, align 4, !tbaa !9
  %257 = icmp ult i32 %255, %256
  br i1 %257, label %258, label %283

258:                                              ; preds = %254
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = icmp eq i32 4, %259
  br i1 %260, label %261, label %265

261:                                              ; preds = %258
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds i8, ptr %262, i32 1
  store ptr %263, ptr %5, align 8, !tbaa !5
  %264 = load i8, ptr %263, align 1, !tbaa !13
  store i8 %264, ptr %24, align 1, !tbaa !13
  br label %265

265:                                              ; preds = %261, %258
  %266 = load i8, ptr %24, align 1, !tbaa !13
  %267 = zext i8 %266 to i32
  %268 = load i8, ptr %11, align 1, !tbaa !13
  %269 = zext i8 %268 to i32
  %270 = and i32 %267, %269
  %271 = trunc i32 %270 to i8
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = load i32, ptr %10, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = getelementptr inbounds i8, ptr %272, i64 %274
  store i8 %271, ptr %275, align 1, !tbaa !13
  %276 = load i8, ptr %24, align 1, !tbaa !13
  %277 = zext i8 %276 to i32
  %278 = ashr i32 %277, 2
  %279 = trunc i32 %278 to i8
  store i8 %279, ptr %24, align 1, !tbaa !13
  br label %280

280:                                              ; preds = %265
  %281 = load i32, ptr %10, align 4, !tbaa !9
  %282 = add i32 %281, 1
  store i32 %282, ptr %10, align 4, !tbaa !9
  br label %254, !llvm.loop !22

283:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #2
  br label %284

284:                                              ; preds = %283, %248
  store i32 0, ptr %13, align 4
  br label %285

285:                                              ; preds = %284, %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  %286 = load i32, ptr %13, align 4
  switch i32 %286, label %288 [
    i32 0, label %287
    i32 1, label %287
  ]

287:                                              ; preds = %285, %285
  ret void

288:                                              ; preds = %285
  unreachable
}

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

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

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


; 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: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @px_qplc_unpack_2u8u(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %.thread, label %5

5:                                                ; preds = %4
  %6 = load i8, ptr %0, align 1, !tbaa !5
  %7 = zext i8 %6 to i32
  %8 = lshr i32 %7, %2
  %9 = getelementptr inbounds i8, ptr %0, i64 1
  %10 = icmp ugt i32 %2, 7
  br i1 %10, label %.thread, label %11

11:                                               ; preds = %5
  %12 = trunc nuw i32 %8 to i8
  %13 = and i8 %12, 3
  store i8 %13, ptr %3, align 1, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %3, i64 1
  %15 = lshr i32 %8, 2
  %16 = add i32 %1, -1
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %.loopexit, label %18, !llvm.loop !8

18:                                               ; preds = %11
  %19 = icmp ugt i32 %2, 5
  br i1 %19, label %.thread, label %20

20:                                               ; preds = %18
  %21 = trunc nuw nsw i32 %15 to i8
  %22 = and i8 %21, 3
  store i8 %22, ptr %14, align 1, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %3, i64 2
  %24 = lshr i32 %8, 4
  %25 = add i32 %1, -2
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %.loopexit, label %27, !llvm.loop !8

27:                                               ; preds = %20
  %28 = icmp ugt i32 %2, 3
  br i1 %28, label %.thread, label %29

29:                                               ; preds = %27
  %30 = trunc nuw nsw i32 %24 to i8
  %31 = and i8 %30, 3
  store i8 %31, ptr %23, align 1, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %3, i64 3
  %33 = add i32 %1, -3
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %.loopexit, label %35, !llvm.loop !8

35:                                               ; preds = %29
  %.not190 = icmp eq i32 %2, 1
  br i1 %.not190, label %36, label %.thread

36:                                               ; preds = %35
  %37 = trunc nuw i32 %8 to i8
  %38 = lshr i8 %37, 6
  store i8 %38, ptr %32, align 1, !tbaa !5
  %39 = add i32 %1, -4
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %.loopexit, label %41, !llvm.loop !8

41:                                               ; preds = %36
  %42 = getelementptr inbounds i8, ptr %3, i64 4
  br label %.thread

.thread:                                          ; preds = %5, %18, %27, %35, %41, %4
  %.2104 = phi ptr [ %3, %4 ], [ %3, %5 ], [ %14, %18 ], [ %23, %27 ], [ %32, %35 ], [ %42, %41 ]
  %.297 = phi i32 [ %1, %4 ], [ %1, %5 ], [ %16, %18 ], [ %25, %27 ], [ %33, %35 ], [ %39, %41 ]
  %.092 = phi ptr [ %0, %4 ], [ %9, %41 ], [ %9, %35 ], [ %9, %27 ], [ %9, %18 ], [ %9, %5 ]
  %43 = icmp ugt i32 %.297, 32
  br i1 %43, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.thread, %.lr.ph
  %.193129 = phi ptr [ %83, %.lr.ph ], [ %.092, %.thread ]
  %.398128 = phi i32 [ %85, %.lr.ph ], [ %.297, %.thread ]
  %.3105127 = phi ptr [ %84, %.lr.ph ], [ %.2104, %.thread ]
  %44 = load i64, ptr %.193129, align 8, !tbaa !10
  %45 = and i64 %44, 217020518514230019
  %.sroa.012.0.extract.trunc = trunc i64 %45 to i8
  %.sroa.413.0.extract.shift = lshr i64 %45, 8
  %.sroa.413.0.extract.trunc = trunc i64 %.sroa.413.0.extract.shift to i8
  %.sroa.514.0.extract.shift = lshr i64 %45, 16
  %.sroa.514.0.extract.trunc = trunc i64 %.sroa.514.0.extract.shift to i8
  %.sroa.615.0.extract.shift = lshr i64 %45, 24
  %.sroa.615.0.extract.trunc = trunc i64 %.sroa.615.0.extract.shift to i8
  %.sroa.7.0.extract.shift = lshr i64 %45, 32
  %.sroa.7.0.extract.trunc = trunc i64 %.sroa.7.0.extract.shift to i8
  %.sroa.8.0.extract.shift = lshr i64 %45, 40
  %.sroa.8.0.extract.trunc = trunc i64 %.sroa.8.0.extract.shift to i8
  %.sroa.9.0.extract.shift = lshr i64 %45, 48
  %.sroa.9.0.extract.trunc = trunc i64 %.sroa.9.0.extract.shift to i8
  %.sroa.10.0.extract.shift = lshr i64 %45, 56
  %.sroa.10.0.extract.trunc = trunc nuw nsw i64 %.sroa.10.0.extract.shift to i8
  store i8 %.sroa.012.0.extract.trunc, ptr %.3105127, align 1, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %.3105127, i64 4
  store i8 %.sroa.413.0.extract.trunc, ptr %46, align 1, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %.3105127, i64 8
  store i8 %.sroa.514.0.extract.trunc, ptr %47, align 1, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %.3105127, i64 12
  store i8 %.sroa.615.0.extract.trunc, ptr %48, align 1, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %.3105127, i64 16
  store i8 %.sroa.7.0.extract.trunc, ptr %49, align 1, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %.3105127, i64 20
  store i8 %.sroa.8.0.extract.trunc, ptr %50, align 1, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %.3105127, i64 24
  store i8 %.sroa.9.0.extract.trunc, ptr %51, align 1, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %.3105127, i64 28
  store i8 %.sroa.10.0.extract.trunc, ptr %52, align 1, !tbaa !5
  %53 = lshr i64 %44, 2
  %54 = and i64 %53, 217020518514230019
  %.sroa.012.0.extract.trunc.1 = trunc i64 %54 to i8
  %.sroa.413.0.extract.shift.1 = lshr i64 %54, 8
  %.sroa.413.0.extract.trunc.1 = trunc i64 %.sroa.413.0.extract.shift.1 to i8
  %.sroa.514.0.extract.shift.1 = lshr i64 %54, 16
  %.sroa.514.0.extract.trunc.1 = trunc i64 %.sroa.514.0.extract.shift.1 to i8
  %.sroa.615.0.extract.shift.1 = lshr i64 %54, 24
  %.sroa.615.0.extract.trunc.1 = trunc i64 %.sroa.615.0.extract.shift.1 to i8
  %.sroa.7.0.extract.shift.1 = lshr i64 %54, 32
  %.sroa.7.0.extract.trunc.1 = trunc i64 %.sroa.7.0.extract.shift.1 to i8
  %.sroa.8.0.extract.shift.1 = lshr i64 %54, 40
  %.sroa.8.0.extract.trunc.1 = trunc i64 %.sroa.8.0.extract.shift.1 to i8
  %.sroa.9.0.extract.shift.1 = lshr i64 %54, 48
  %.sroa.9.0.extract.trunc.1 = trunc i64 %.sroa.9.0.extract.shift.1 to i8
  %.sroa.10.0.extract.shift.1 = lshr i64 %54, 56
  %.sroa.10.0.extract.trunc.1 = trunc nuw nsw i64 %.sroa.10.0.extract.shift.1 to i8
  %55 = getelementptr inbounds i8, ptr %.3105127, i64 1
  store i8 %.sroa.012.0.extract.trunc.1, ptr %55, align 1, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %.3105127, i64 5
  store i8 %.sroa.413.0.extract.trunc.1, ptr %56, align 1, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %.3105127, i64 9
  store i8 %.sroa.514.0.extract.trunc.1, ptr %57, align 1, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %.3105127, i64 13
  store i8 %.sroa.615.0.extract.trunc.1, ptr %58, align 1, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %.3105127, i64 17
  store i8 %.sroa.7.0.extract.trunc.1, ptr %59, align 1, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %.3105127, i64 21
  store i8 %.sroa.8.0.extract.trunc.1, ptr %60, align 1, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %.3105127, i64 25
  store i8 %.sroa.9.0.extract.trunc.1, ptr %61, align 1, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %.3105127, i64 29
  store i8 %.sroa.10.0.extract.trunc.1, ptr %62, align 1, !tbaa !5
  %63 = lshr i64 %44, 4
  %64 = and i64 %63, 217020518514230019
  %.sroa.012.0.extract.trunc.2 = trunc i64 %64 to i8
  %.sroa.413.0.extract.shift.2 = lshr i64 %64, 8
  %.sroa.413.0.extract.trunc.2 = trunc i64 %.sroa.413.0.extract.shift.2 to i8
  %.sroa.514.0.extract.shift.2 = lshr i64 %64, 16
  %.sroa.514.0.extract.trunc.2 = trunc i64 %.sroa.514.0.extract.shift.2 to i8
  %.sroa.615.0.extract.shift.2 = lshr i64 %64, 24
  %.sroa.615.0.extract.trunc.2 = trunc i64 %.sroa.615.0.extract.shift.2 to i8
  %.sroa.7.0.extract.shift.2 = lshr i64 %64, 32
  %.sroa.7.0.extract.trunc.2 = trunc i64 %.sroa.7.0.extract.shift.2 to i8
  %.sroa.8.0.extract.shift.2 = lshr i64 %64, 40
  %.sroa.8.0.extract.trunc.2 = trunc i64 %.sroa.8.0.extract.shift.2 to i8
  %.sroa.9.0.extract.shift.2 = lshr i64 %64, 48
  %.sroa.9.0.extract.trunc.2 = trunc i64 %.sroa.9.0.extract.shift.2 to i8
  %.sroa.10.0.extract.shift.2 = lshr i64 %64, 56
  %.sroa.10.0.extract.trunc.2 = trunc nuw nsw i64 %.sroa.10.0.extract.shift.2 to i8
  %65 = getelementptr inbounds i8, ptr %.3105127, i64 2
  store i8 %.sroa.012.0.extract.trunc.2, ptr %65, align 1, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %.3105127, i64 6
  store i8 %.sroa.413.0.extract.trunc.2, ptr %66, align 1, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %.3105127, i64 10
  store i8 %.sroa.514.0.extract.trunc.2, ptr %67, align 1, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %.3105127, i64 14
  store i8 %.sroa.615.0.extract.trunc.2, ptr %68, align 1, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %.3105127, i64 18
  store i8 %.sroa.7.0.extract.trunc.2, ptr %69, align 1, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %.3105127, i64 22
  store i8 %.sroa.8.0.extract.trunc.2, ptr %70, align 1, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %.3105127, i64 26
  store i8 %.sroa.9.0.extract.trunc.2, ptr %71, align 1, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %.3105127, i64 30
  store i8 %.sroa.10.0.extract.trunc.2, ptr %72, align 1, !tbaa !5
  %73 = lshr i64 %44, 6
  %74 = and i64 %73, 217020518514230019
  %.sroa.012.0.extract.trunc.3 = trunc i64 %74 to i8
  %.sroa.413.0.extract.shift.3 = lshr i64 %74, 8
  %.sroa.413.0.extract.trunc.3 = trunc i64 %.sroa.413.0.extract.shift.3 to i8
  %.sroa.514.0.extract.shift.3 = lshr i64 %74, 16
  %.sroa.514.0.extract.trunc.3 = trunc i64 %.sroa.514.0.extract.shift.3 to i8
  %.sroa.615.0.extract.shift.3 = lshr i64 %74, 24
  %.sroa.615.0.extract.trunc.3 = trunc i64 %.sroa.615.0.extract.shift.3 to i8
  %.sroa.7.0.extract.shift.3 = lshr i64 %74, 32
  %.sroa.7.0.extract.trunc.3 = trunc i64 %.sroa.7.0.extract.shift.3 to i8
  %.sroa.8.0.extract.shift.3 = lshr i64 %74, 40
  %.sroa.8.0.extract.trunc.3 = trunc i64 %.sroa.8.0.extract.shift.3 to i8
  %.sroa.9.0.extract.shift.3 = lshr i64 %74, 48
  %.sroa.9.0.extract.trunc.3 = trunc i64 %.sroa.9.0.extract.shift.3 to i8
  %.sroa.10.0.extract.shift.3 = lshr i64 %44, 62
  %.sroa.10.0.extract.trunc.3 = trunc nuw nsw i64 %.sroa.10.0.extract.shift.3 to i8
  %75 = getelementptr inbounds i8, ptr %.3105127, i64 3
  store i8 %.sroa.012.0.extract.trunc.3, ptr %75, align 1, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %.3105127, i64 7
  store i8 %.sroa.413.0.extract.trunc.3, ptr %76, align 1, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %.3105127, i64 11
  store i8 %.sroa.514.0.extract.trunc.3, ptr %77, align 1, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %.3105127, i64 15
  store i8 %.sroa.615.0.extract.trunc.3, ptr %78, align 1, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %.3105127, i64 19
  store i8 %.sroa.7.0.extract.trunc.3, ptr %79, align 1, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %.3105127, i64 23
  store i8 %.sroa.8.0.extract.trunc.3, ptr %80, align 1, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %.3105127, i64 27
  store i8 %.sroa.9.0.extract.trunc.3, ptr %81, align 1, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %.3105127, i64 31
  store i8 %.sroa.10.0.extract.trunc.3, ptr %82, align 1, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %.193129, i64 8
  %84 = getelementptr inbounds i8, ptr %.3105127, i64 32
  %85 = add i32 %.398128, -32
  %86 = icmp ugt i32 %85, 32
  br i1 %86, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %.thread
  %.3105.lcssa = phi ptr [ %.2104, %.thread ], [ %84, %.lr.ph ]
  %.398.lcssa = phi i32 [ %.297, %.thread ], [ %85, %.lr.ph ]
  %.193.lcssa = phi ptr [ %.092, %.thread ], [ %83, %.lr.ph ]
  %87 = icmp ugt i32 %.398.lcssa, 16
  br i1 %87, label %88, label %115

88:                                               ; preds = %._crit_edge
  %89 = load i32, ptr %.193.lcssa, align 4, !tbaa !13
  %90 = and i32 %89, 50529027
  %.sroa.07.0.extract.trunc = trunc i32 %90 to i8
  %.sroa.48.0.extract.shift = lshr i32 %90, 8
  %.sroa.48.0.extract.trunc = trunc i32 %.sroa.48.0.extract.shift to i8
  %.sroa.5.0.extract.shift = lshr i32 %90, 16
  %.sroa.5.0.extract.trunc = trunc i32 %.sroa.5.0.extract.shift to i8
  %.sroa.6.0.extract.shift = lshr i32 %90, 24
  %.sroa.6.0.extract.trunc = trunc nuw nsw i32 %.sroa.6.0.extract.shift to i8
  store i8 %.sroa.07.0.extract.trunc, ptr %.3105.lcssa, align 1, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 4
  store i8 %.sroa.48.0.extract.trunc, ptr %91, align 1, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 8
  store i8 %.sroa.5.0.extract.trunc, ptr %92, align 1, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 12
  store i8 %.sroa.6.0.extract.trunc, ptr %93, align 1, !tbaa !5
  %94 = lshr i32 %89, 2
  %95 = and i32 %94, 50529027
  %.sroa.07.0.extract.trunc.1 = trunc i32 %95 to i8
  %.sroa.48.0.extract.shift.1 = lshr i32 %95, 8
  %.sroa.48.0.extract.trunc.1 = trunc i32 %.sroa.48.0.extract.shift.1 to i8
  %.sroa.5.0.extract.shift.1 = lshr i32 %95, 16
  %.sroa.5.0.extract.trunc.1 = trunc i32 %.sroa.5.0.extract.shift.1 to i8
  %.sroa.6.0.extract.shift.1 = lshr i32 %95, 24
  %.sroa.6.0.extract.trunc.1 = trunc nuw nsw i32 %.sroa.6.0.extract.shift.1 to i8
  %96 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 1
  store i8 %.sroa.07.0.extract.trunc.1, ptr %96, align 1, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 5
  store i8 %.sroa.48.0.extract.trunc.1, ptr %97, align 1, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 9
  store i8 %.sroa.5.0.extract.trunc.1, ptr %98, align 1, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 13
  store i8 %.sroa.6.0.extract.trunc.1, ptr %99, align 1, !tbaa !5
  %100 = lshr i32 %89, 4
  %101 = and i32 %100, 50529027
  %.sroa.07.0.extract.trunc.2 = trunc i32 %101 to i8
  %.sroa.48.0.extract.shift.2 = lshr i32 %101, 8
  %.sroa.48.0.extract.trunc.2 = trunc i32 %.sroa.48.0.extract.shift.2 to i8
  %.sroa.5.0.extract.shift.2 = lshr i32 %101, 16
  %.sroa.5.0.extract.trunc.2 = trunc i32 %.sroa.5.0.extract.shift.2 to i8
  %.sroa.6.0.extract.shift.2 = lshr i32 %101, 24
  %.sroa.6.0.extract.trunc.2 = trunc nuw nsw i32 %.sroa.6.0.extract.shift.2 to i8
  %102 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 2
  store i8 %.sroa.07.0.extract.trunc.2, ptr %102, align 1, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 6
  store i8 %.sroa.48.0.extract.trunc.2, ptr %103, align 1, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 10
  store i8 %.sroa.5.0.extract.trunc.2, ptr %104, align 1, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 14
  store i8 %.sroa.6.0.extract.trunc.2, ptr %105, align 1, !tbaa !5
  %106 = lshr i32 %89, 6
  %107 = and i32 %106, 50529027
  %.sroa.07.0.extract.trunc.3 = trunc i32 %107 to i8
  %.sroa.48.0.extract.shift.3 = lshr i32 %107, 8
  %.sroa.48.0.extract.trunc.3 = trunc i32 %.sroa.48.0.extract.shift.3 to i8
  %.sroa.5.0.extract.shift.3 = lshr i32 %107, 16
  %.sroa.5.0.extract.trunc.3 = trunc i32 %.sroa.5.0.extract.shift.3 to i8
  %.sroa.6.0.extract.shift.3 = lshr i32 %89, 30
  %.sroa.6.0.extract.trunc.3 = trunc nuw nsw i32 %.sroa.6.0.extract.shift.3 to i8
  %108 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 3
  store i8 %.sroa.07.0.extract.trunc.3, ptr %108, align 1, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 7
  store i8 %.sroa.48.0.extract.trunc.3, ptr %109, align 1, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 11
  store i8 %.sroa.5.0.extract.trunc.3, ptr %110, align 1, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 15
  store i8 %.sroa.6.0.extract.trunc.3, ptr %111, align 1, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %.193.lcssa, i64 4
  %113 = getelementptr inbounds i8, ptr %.3105.lcssa, i64 16
  %114 = add nsw i32 %.398.lcssa, -16
  br label %115

115:                                              ; preds = %88, %._crit_edge
  %.4106 = phi ptr [ %113, %88 ], [ %.3105.lcssa, %._crit_edge ]
  %.499 = phi i32 [ %114, %88 ], [ %.398.lcssa, %._crit_edge ]
  %.2 = phi ptr [ %112, %88 ], [ %.193.lcssa, %._crit_edge ]
  %116 = icmp ugt i32 %.499, 8
  br i1 %116, label %.thread167, label %135

.thread167:                                       ; preds = %115
  %117 = load i16, ptr %.2, align 2, !tbaa !15
  %118 = and i16 %117, 771
  %.sroa.0.0.extract.trunc = trunc i16 %118 to i8
  %.sroa.4.0.extract.shift = lshr i16 %118, 8
  %.sroa.4.0.extract.trunc = trunc nuw nsw i16 %.sroa.4.0.extract.shift to i8
  store i8 %.sroa.0.0.extract.trunc, ptr %.4106, align 1, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %.4106, i64 4
  store i8 %.sroa.4.0.extract.trunc, ptr %119, align 1, !tbaa !5
  %120 = lshr i16 %117, 2
  %121 = and i16 %120, 771
  %.sroa.0.0.extract.trunc.1 = trunc i16 %121 to i8
  %.sroa.4.0.extract.shift.1 = lshr i16 %121, 8
  %.sroa.4.0.extract.trunc.1 = trunc nuw nsw i16 %.sroa.4.0.extract.shift.1 to i8
  %122 = getelementptr inbounds i8, ptr %.4106, i64 1
  store i8 %.sroa.0.0.extract.trunc.1, ptr %122, align 1, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %.4106, i64 5
  store i8 %.sroa.4.0.extract.trunc.1, ptr %123, align 1, !tbaa !5
  %124 = lshr i16 %117, 4
  %125 = and i16 %124, 771
  %.sroa.0.0.extract.trunc.2 = trunc i16 %125 to i8
  %.sroa.4.0.extract.shift.2 = lshr i16 %125, 8
  %.sroa.4.0.extract.trunc.2 = trunc nuw nsw i16 %.sroa.4.0.extract.shift.2 to i8
  %126 = getelementptr inbounds i8, ptr %.4106, i64 2
  store i8 %.sroa.0.0.extract.trunc.2, ptr %126, align 1, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %.4106, i64 6
  store i8 %.sroa.4.0.extract.trunc.2, ptr %127, align 1, !tbaa !5
  %128 = trunc i16 %117 to i8
  %129 = lshr i8 %128, 6
  %.sroa.4.0.extract.shift.3 = lshr i16 %117, 14
  %.sroa.4.0.extract.trunc.3 = trunc nuw nsw i16 %.sroa.4.0.extract.shift.3 to i8
  %130 = getelementptr inbounds i8, ptr %.4106, i64 3
  store i8 %129, ptr %130, align 1, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %.4106, i64 7
  store i8 %.sroa.4.0.extract.trunc.3, ptr %131, align 1, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %.2, i64 2
  %133 = getelementptr inbounds i8, ptr %.4106, i64 8
  %134 = add nsw i32 %.499, -8
  br label %136

135:                                              ; preds = %115
  %.not119 = icmp eq i32 %.499, 0
  br i1 %.not119, label %.loopexit, label %136

136:                                              ; preds = %135, %.thread167
  %.3174 = phi ptr [ %132, %.thread167 ], [ %.2, %135 ]
  %.5100173 = phi i32 [ %134, %.thread167 ], [ %.499, %135 ]
  %.5107172 = phi ptr [ %133, %.thread167 ], [ %.4106, %135 ]
  %wide.trip.count = zext i32 %.5100173 to i64
  %137 = load i8, ptr %.3174, align 1, !tbaa !5
  %138 = and i8 %137, 3
  store i8 %138, ptr %.5107172, align 1, !tbaa !5
  %exitcond.peel.not = icmp eq i32 %.5100173, 1
  br i1 %exitcond.peel.not, label %.loopexit, label %.peel.next

.peel.next:                                       ; preds = %136
  %139 = lshr i8 %137, 2
  %140 = and i8 %139, 3
  %141 = getelementptr inbounds i8, ptr %.5107172, i64 1
  store i8 %140, ptr %141, align 1, !tbaa !5
  %exitcond.peel150.not = icmp eq i32 %.5100173, 2
  br i1 %exitcond.peel150.not, label %.loopexit, label %.peel.next146

.peel.next146:                                    ; preds = %.peel.next
  %142 = lshr i8 %137, 4
  %143 = and i8 %142, 3
  %144 = getelementptr inbounds i8, ptr %.5107172, i64 2
  store i8 %143, ptr %144, align 1, !tbaa !5
  %exitcond.peel155.not = icmp eq i32 %.5100173, 3
  br i1 %exitcond.peel155.not, label %.loopexit, label %.peel.next151

.peel.next151:                                    ; preds = %.peel.next146
  %145 = lshr i8 %137, 6
  %146 = getelementptr inbounds i8, ptr %.5107172, i64 3
  store i8 %145, ptr %146, align 1, !tbaa !5
  %exitcond.peel160.not = icmp eq i32 %.5100173, 4
  br i1 %exitcond.peel160.not, label %.loopexit, label %.peel.next156

.peel.next156:                                    ; preds = %.peel.next151
  %147 = getelementptr inbounds i8, ptr %.3174, i64 1
  %148 = load i8, ptr %147, align 1, !tbaa !5
  %149 = and i8 %148, 3
  %150 = getelementptr inbounds i8, ptr %.5107172, i64 4
  store i8 %149, ptr %150, align 1, !tbaa !5
  %exitcond.peel165.not = icmp eq i32 %.5100173, 5
  br i1 %exitcond.peel165.not, label %.loopexit, label %.peel.next161.preheader

.peel.next161.preheader:                          ; preds = %.peel.next156
  %151 = add nsw i64 %wide.trip.count, -5
  %152 = add nsw i64 %wide.trip.count, -6
  %xtraiter = and i64 %151, 3
  %153 = icmp ult i64 %152, 3
  br i1 %153, label %.loopexit.loopexit.unr-lcssa, label %.peel.next161.preheader.new

.peel.next161.preheader.new:                      ; preds = %.peel.next161.preheader
  %unroll_iter = and i64 %151, -4
  br label %.peel.next161

.peel.next161:                                    ; preds = %.peel.next161, %.peel.next161.preheader.new
  %indvars.iv = phi i64 [ 5, %.peel.next161.preheader.new ], [ %indvars.iv.next.3, %.peel.next161 ]
  %.0138.in = phi i8 [ %148, %.peel.next161.preheader.new ], [ 0, %.peel.next161 ]
  %niter = phi i64 [ 0, %.peel.next161.preheader.new ], [ %niter.next.3, %.peel.next161 ]
  %.0138 = lshr i8 %.0138.in, 2
  %154 = and i8 %.0138, 3
  %155 = getelementptr inbounds i8, ptr %.5107172, i64 %indvars.iv
  store i8 %154, ptr %155, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.0138.1 = lshr i8 %.0138.in, 4
  %156 = and i8 %.0138.1, 3
  %157 = getelementptr inbounds i8, ptr %.5107172, i64 %indvars.iv.next
  store i8 %156, ptr %157, align 1, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %.0138.2 = lshr i8 %.0138.in, 6
  %158 = getelementptr inbounds i8, ptr %.5107172, i64 %indvars.iv.next.1
  store i8 %.0138.2, ptr %158, align 1, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %159 = getelementptr inbounds i8, ptr %.5107172, i64 %indvars.iv.next.2
  store i8 0, ptr %159, align 1, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %.peel.next161, !llvm.loop !17

.loopexit.loopexit.unr-lcssa:                     ; preds = %.peel.next161, %.peel.next161.preheader
  %indvars.iv.unr = phi i64 [ 5, %.peel.next161.preheader ], [ %indvars.iv.next.3, %.peel.next161 ]
  %.0138.in.unr = phi i8 [ %148, %.peel.next161.preheader ], [ 0, %.peel.next161 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.peel.next161.epil

.peel.next161.epil:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.peel.next161.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.peel.next161.epil ], [ %indvars.iv.unr, %.loopexit.loopexit.unr-lcssa ]
  %.0138.in.epil = phi i8 [ %.0138.epil, %.peel.next161.epil ], [ %.0138.in.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.peel.next161.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %.0138.epil = lshr i8 %.0138.in.epil, 2
  %160 = and i8 %.0138.epil, 3
  %161 = getelementptr inbounds i8, ptr %.5107172, i64 %indvars.iv.epil
  store i8 %160, ptr %161, align 1, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.peel.next161.epil, !llvm.loop !19

.loopexit:                                        ; preds = %11, %20, %29, %36, %.loopexit.loopexit.unr-lcssa, %.peel.next161.epil, %136, %.peel.next, %.peel.next146, %.peel.next151, %.peel.next156, %135
  ret void
}

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

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


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