; LLVM IR from intel/qpl :: sources/c_api/legacy_hw_path (qpl_hw_inflate_job)

; 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.qpl::ml::compression::decompression_huffman_table" = type <{ ptr, ptr, ptr, ptr, i8, i8, i8, [5 x i8] }>
%struct.qpl_hw_state = type { %struct.hw_decompress_analytics_descriptor, %struct.hw_iaa_completion_record, [2 x %struct.hw_iaa_aecs_analytic], [2 x %struct.hw_iaa_aecs_compress], %struct.qpl_buffer, %struct.qpl_execution_history, i32, i32, i32, %struct.hw_huffman_code, i32, %struct.hw_accelerator_context, i32, i32, i8, i8, i32, i32, %struct.qpl_execution_record }
%struct.hw_decompress_analytics_descriptor = type { i32, i32, ptr, ptr, ptr, i32, i16, i16, ptr, i32, i32, i32, i32 }
%struct.hw_iaa_completion_record = type { i8, i8, i8, i8, i32, i64, i64, i32, i8, i8, i16, i32, i32, i32, i32, i64, i64 }
%struct.hw_iaa_aecs_analytic = type { %struct.hw_iaa_aecs_filter, [36 x i32], %struct.hw_iaa_aecs_decompress }
%struct.hw_iaa_aecs_filter = type { i32, i32, i32, i32, i32, i32 }
%struct.hw_iaa_aecs_decompress = type { [2 x i32], i32, i32, [32 x i64], [32 x i8], i32, i8, i8, i16, [5 x i32], [5 x i32], [5 x i32], [5 x i32], [62 x i32], %union.anon, i16, i16, %union.anon.0, %struct.anon.2, i16, [4096 x i8], [6 x i32] }
%union.anon = type { %struct.anon }
%struct.anon = type { [6 x i32], [224 x i8], [5 x i32] }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { [2 x i32], [144 x i8], [5 x i32] }
%struct.anon.2 = type { i16 }
%struct.hw_iaa_aecs_compress = type { i32, i32, [5 x i32], i32, [256 x i8], %struct.hw_iaa_histogram, [12288 x i8] }
%struct.hw_iaa_histogram = type { [286 x i32], [2 x i32], [30 x i32], [2 x i32] }
%struct.qpl_buffer = type { [1024 x i8], i32, i32 }
%struct.qpl_execution_history = type { i8, i32, i32, i32, ptr }
%struct.hw_huffman_code = type { i16, i8, i8 }
%struct.hw_accelerator_context = type { %struct.hw_device_properties, ptr }
%struct.hw_device_properties = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.qpl_execution_record = type { double, i32, i32 }
%struct.qpl_job = type { ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr, i32, i32, i8, i8, i8, i64, i64, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.qpl_aux_data }
%struct.qpl_aux_data = type { ptr, ptr, ptr, ptr, ptr, i32 }
%struct.qpl_dictionary = type { i8, i8, i64, i32, i32, i32, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local i32 @hw_submit_decompress_job(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i16, align 2
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.qpl::ml::compression::decompression_huffman_table", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call noundef ptr @_ZN3qpl3jobL9get_stateEPK7qpl_job(ptr noundef %25) #6
  store ptr %26, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qpl_hw_state, ptr %27, i32 0, i32 0
  store ptr %28, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qpl_hw_state, ptr %29, i32 0, i32 2
  %31 = getelementptr inbounds [2 x %struct.hw_iaa_aecs_analytic], ptr %30, i64 0, i64 0
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.qpl_hw_state, ptr %32, i32 0, i32 7
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds i8, ptr %31, i64 %35
  store ptr %36, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.qpl_job, ptr %37, i32 0, i32 7
  %39 = load i32, ptr %38, align 4, !tbaa !29
  %40 = and i32 %39, 513
  %41 = icmp eq i32 %40, 513
  br i1 %41, label %42, label %47

42:                                               ; preds = %4
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.qpl_hw_state, ptr %43, i32 0, i32 2
  %45 = getelementptr inbounds [2 x %struct.hw_iaa_aecs_analytic], ptr %44, i64 0, i64 0
  %46 = getelementptr inbounds i8, ptr %45, i64 1248
  store ptr %46, ptr %12, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %42, %4
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = icmp eq ptr null, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  store i32 50, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %411

51:                                               ; preds = %47
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %53, i32 0, i32 3
  store ptr %52, ptr %54, align 1, !tbaa !39
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %56, i32 0, i32 5
  store i32 %55, ptr %57, align 1, !tbaa !40
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.qpl_job, ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !41
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %61, i32 0, i32 4
  store ptr %60, ptr %62, align 1, !tbaa !42
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.qpl_job, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !43
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %66, i32 0, i32 9
  store i32 %65, ptr %67, align 1, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.qpl_job, ptr %68, i32 0, i32 7
  %70 = load i32, ptr %69, align 4, !tbaa !29
  %71 = and i32 %70, 4
  %72 = icmp ne i32 %71, 0
  %73 = zext i1 %72 to i64
  %74 = select i1 %72, i32 2097152, i32 0
  %75 = or i32 1107296256, %74
  store i32 %75, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #6
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.qpl_job, ptr %76, i32 0, i32 7
  %78 = load i32, ptr %77, align 4, !tbaa !29
  %79 = and i32 %78, 16
  %80 = icmp ne i32 %79, 0
  %81 = zext i1 %80 to i64
  %82 = select i1 %80, i32 32, i32 0
  %83 = or i32 1, %82
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.qpl_job, ptr %84, i32 0, i32 21
  %86 = load i8, ptr %85, align 2, !tbaa !45
  %87 = zext i8 %86 to i32
  %88 = and i32 %87, 7
  %89 = and i32 %88, 7
  %90 = shl i32 %89, 6
  %91 = or i32 %83, %90
  %92 = trunc i32 %91 to i16
  store i16 %92, ptr %15, align 2, !tbaa !46
  %93 = call noundef zeroext i1 @_ZN3qpl2ml4util38are_iaa_gen_2_min_capabilities_presentEv()
  br i1 %93, label %94, label %106

94:                                               ; preds = %51
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.qpl_job, ptr %95, i32 0, i32 21
  %97 = load i8, ptr %96, align 2, !tbaa !45
  %98 = zext i8 %97 to i32
  %99 = icmp ugt i32 %98, 7
  %100 = zext i1 %99 to i64
  %101 = select i1 %99, i32 16384, i32 0
  %102 = load i16, ptr %15, align 2, !tbaa !46
  %103 = zext i16 %102 to i32
  %104 = or i32 %103, %101
  %105 = trunc i32 %104 to i16
  store i16 %105, ptr %15, align 2, !tbaa !46
  br label %106

106:                                              ; preds = %94, %51
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.qpl_job, ptr %107, i32 0, i32 7
  %109 = load i32, ptr %108, align 4, !tbaa !29
  %110 = and i32 %109, 1
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %118, label %112

112:                                              ; preds = %106
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.qpl_hw_state, ptr %113, i32 0, i32 5
  %115 = getelementptr inbounds %struct.qpl_execution_history, ptr %114, i32 0, i32 0
  %116 = load i8, ptr %115, align 8, !tbaa !47, !range !48, !noundef !49
  %117 = trunc i8 %116 to i1
  br i1 %117, label %123, label %118

118:                                              ; preds = %112, %106
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.qpl_job, ptr %119, i32 0, i32 14
  %121 = load ptr, ptr %120, align 8, !tbaa !50
  %122 = icmp ne ptr %121, null
  br label %123

123:                                              ; preds = %118, %112
  %124 = phi i1 [ false, %112 ], [ %122, %118 ]
  %125 = zext i1 %124 to i8
  store i8 %125, ptr %16, align 1, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  %126 = call noundef zeroext i1 @_ZN3qpl2ml4util38are_iaa_gen_2_min_capabilities_presentEv()
  %127 = zext i1 %126 to i8
  store i8 %127, ptr %17, align 1, !tbaa !51
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.qpl_hw_state, ptr %128, i32 0, i32 5
  %130 = getelementptr inbounds %struct.qpl_execution_history, ptr %129, i32 0, i32 0
  %131 = load i8, ptr %130, align 8, !tbaa !47, !range !48, !noundef !49
  %132 = trunc i8 %131 to i1
  br i1 %132, label %133, label %136

133:                                              ; preds = %123
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = or i32 %134, 65536
  store i32 %135, ptr %14, align 4, !tbaa !9
  br label %188

136:                                              ; preds = %123
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.qpl_hw_state, ptr %137, i32 0, i32 5
  %139 = getelementptr inbounds %struct.qpl_execution_history, ptr %138, i32 0, i32 0
  store i8 1, ptr %139, align 8, !tbaa !47
  %140 = load i8, ptr %16, align 1, !tbaa !51, !range !48, !noundef !49
  %141 = trunc i8 %140 to i1
  br i1 %141, label %142, label %145

142:                                              ; preds = %136
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = or i32 %143, 65536
  store i32 %144, ptr %14, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %142, %136
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.qpl_job, ptr %146, i32 0, i32 7
  %148 = load i32, ptr %147, align 4, !tbaa !29
  %149 = and i32 %148, 32
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %187

151:                                              ; preds = %145
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = or i32 %152, 65536
  store i32 %153, ptr %14, align 4, !tbaa !9
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.qpl_job, ptr %154, i32 0, i32 13
  %156 = load ptr, ptr %155, align 8, !tbaa !52
  %157 = icmp eq ptr null, %156
  br i1 %157, label %158, label %159

158:                                              ; preds = %151
  store i32 55, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %410

159:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.qpl_job, ptr %160, i32 0, i32 13
  %162 = load ptr, ptr %161, align 8, !tbaa !52
  %163 = call noundef i32 @_Z30check_huffman_table_is_correctILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef %162)
  store i32 %163, ptr %18, align 4, !tbaa !53
  %164 = load i32, ptr %18, align 4, !tbaa !53
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %168

166:                                              ; preds = %159
  %167 = load i32, ptr %18, align 4, !tbaa !53
  store i32 %167, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %169

168:                                              ; preds = %159
  store i32 0, ptr %13, align 4
  br label %169

169:                                              ; preds = %168, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %170 = load i32, ptr %13, align 4
  switch i32 %170, label %410 [
    i32 0, label %171
  ]

171:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qpl_job, ptr %172, i32 0, i32 13
  %174 = load ptr, ptr %173, align 8, !tbaa !52
  %175 = call noundef ptr @_Z20use_as_huffman_tableILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef %174)
  store ptr %175, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_sw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72) %176) #6
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_hw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72) %178) #6
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE25get_deflate_header_bufferEv(ptr noundef nonnull align 8 dereferenceable(72) %180) #6
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE27get_lookup_table_buffer_ptrEv(ptr noundef nonnull align 8 dereferenceable(72) %182) #6
  call void @_ZN3qpl2ml11compression27decompression_huffman_tableC1EPhS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(35) %20, ptr noundef %177, ptr noundef %179, ptr noundef %181, ptr noundef %183)
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.hw_iaa_aecs_analytic, ptr %184, i32 0, i32 2
  %186 = call noundef ptr @_ZN3qpl2ml11compression27decompression_huffman_table26get_sw_decompression_tableEv(ptr noundef nonnull align 8 dereferenceable(35) %20) #6
  call void @hw_iaa_aecs_decompress_set_huffman_only_huffman_table(ptr noundef %185, ptr noundef %186)
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %187

187:                                              ; preds = %171, %145
  br label %188

188:                                              ; preds = %187, %133
  %189 = load i8, ptr %16, align 1, !tbaa !51, !range !48, !noundef !49
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %232

191:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.qpl_job, ptr %192, i32 0, i32 14
  %194 = load ptr, ptr %193, align 8, !tbaa !50
  store ptr %194, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %195 = load ptr, ptr %21, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.qpl_dictionary, ptr %195, i32 0, i32 1
  %197 = load i8, ptr %196, align 1, !tbaa !54
  %198 = icmp eq i8 %197, -1
  br i1 %198, label %199, label %203

199:                                              ; preds = %191
  %200 = load ptr, ptr %21, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.qpl_dictionary, ptr %200, i32 0, i32 2
  %202 = load i64, ptr %201, align 8, !tbaa !58
  br label %208

203:                                              ; preds = %191
  %204 = load ptr, ptr %21, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.qpl_dictionary, ptr %204, i32 0, i32 1
  %206 = load i8, ptr %205, align 1, !tbaa !54
  %207 = call noundef i64 @_ZN3qpl2ml11compression31get_history_size_for_dictionaryE25hardware_dictionary_level(i8 noundef signext %206) #6
  br label %208

208:                                              ; preds = %203, %199
  %209 = phi i64 [ %202, %199 ], [ %207, %203 ]
  store i64 %209, ptr %22, align 8, !tbaa !59
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %210 = load ptr, ptr %21, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.qpl_dictionary, ptr %210, i32 0, i32 1
  %212 = load i8, ptr %211, align 1, !tbaa !54
  %213 = icmp eq i8 %212, -1
  br i1 %213, label %214, label %215

214:                                              ; preds = %208
  br label %219

215:                                              ; preds = %208
  %216 = load ptr, ptr %21, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.qpl_dictionary, ptr %216, i32 0, i32 3
  %218 = load i32, ptr %217, align 8, !tbaa !60
  br label %219

219:                                              ; preds = %215, %214
  %220 = phi i32 [ 0, %214 ], [ %218, %215 ]
  store i32 %220, ptr %23, align 4, !tbaa !9
  %221 = load ptr, ptr %12, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.hw_iaa_aecs_analytic, ptr %221, i32 0, i32 2
  %223 = load ptr, ptr %21, align 8, !tbaa !5
  %224 = call noundef ptr @_ZN3qpl2ml11compression19get_dictionary_dataER14qpl_dictionary(ptr noundef nonnull align 8 dereferenceable(40) %223) #6
  %225 = load ptr, ptr %21, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.qpl_dictionary, ptr %225, i32 0, i32 2
  %227 = load i64, ptr %226, align 8, !tbaa !58
  %228 = load i64, ptr %22, align 8, !tbaa !59
  %229 = load i32, ptr %23, align 4, !tbaa !9
  call void @hw_iaa_aecs_decompress_set_dictionary(ptr noundef %222, ptr noundef %224, i64 noundef %227, i64 noundef %228, i32 noundef %229)
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.hw_iaa_aecs_analytic, ptr %230, i32 0, i32 2
  call void @_ZL46hw_iaa_aecs_decompress_set_decompression_stateP22hw_iaa_aecs_decompress28hw_iaa_aecs_decompress_state(ptr noundef %231, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %232

232:                                              ; preds = %219, %188
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.qpl_job, ptr %233, i32 0, i32 20
  %235 = load i8, ptr %234, align 1, !tbaa !61
  %236 = zext i8 %235 to i32
  %237 = icmp ne i32 0, %236
  br i1 %237, label %238, label %312

238:                                              ; preds = %232
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.qpl_job, ptr %239, i32 0, i32 7
  %241 = load i32, ptr %240, align 4, !tbaa !29
  %242 = and i32 %241, 513
  %243 = icmp eq i32 %242, 513
  br i1 %243, label %244, label %259

244:                                              ; preds = %238
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = or i32 %245, 65536
  store i32 %246, ptr %14, align 4, !tbaa !9
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3qpl7core_sw4util9set_zerosIPhEEvT_m(ptr noundef %247, i64 noundef 1248) #6
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.qpl_job, ptr %248, i32 0, i32 20
  %250 = load i8, ptr %249, align 1, !tbaa !61
  %251 = zext i8 %250 to i32
  %252 = and i32 7, %251
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.hw_iaa_aecs_analytic, ptr %253, i32 0, i32 2
  %255 = getelementptr inbounds %struct.hw_iaa_aecs_decompress, ptr %254, i32 0, i32 2
  store i32 %252, ptr %255, align 4, !tbaa !62
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.hw_iaa_aecs_analytic, ptr %256, i32 0, i32 2
  %258 = getelementptr inbounds %struct.hw_iaa_aecs_decompress, ptr %257, i32 0, i32 15
  store i16 1, ptr %258, align 4, !tbaa !67
  br label %259

259:                                              ; preds = %244, %238
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %260 = load ptr, ptr %12, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.hw_iaa_aecs_analytic, ptr %260, i32 0, i32 2
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %262, i32 0, i32 3
  %264 = load ptr, ptr %263, align 1, !tbaa !39
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.qpl_job, ptr %265, i32 0, i32 1
  %267 = load i32, ptr %266, align 8, !tbaa !68
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.qpl_job, ptr %268, i32 0, i32 20
  %270 = load i8, ptr %269, align 1, !tbaa !61
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.qpl_job, ptr %271, i32 0, i32 21
  %273 = load i8, ptr %272, align 2, !tbaa !45
  %274 = call i32 @hw_iaa_aecs_decompress_set_input_accumulator(ptr noundef %261, ptr noundef %264, i32 noundef %267, i8 noundef zeroext %270, i8 noundef zeroext %273)
  store i32 %274, ptr %24, align 4, !tbaa !9
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.qpl_job, ptr %275, i32 0, i32 1
  %277 = load i32, ptr %276, align 8, !tbaa !68
  %278 = icmp eq i32 %277, 1
  br i1 %278, label %279, label %292

279:                                              ; preds = %259
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.qpl_job, ptr %280, i32 0, i32 21
  %282 = load i8, ptr %281, align 2, !tbaa !45
  %283 = zext i8 %282 to i32
  %284 = and i32 %283, 7
  %285 = and i32 %284, 7
  %286 = shl i32 %285, 6
  %287 = xor i32 %286, -1
  %288 = load i16, ptr %15, align 2, !tbaa !46
  %289 = zext i16 %288 to i32
  %290 = and i32 %289, %287
  %291 = trunc i32 %290 to i16
  store i16 %291, ptr %15, align 2, !tbaa !46
  br label %292

292:                                              ; preds = %279, %259
  %293 = load i32, ptr %24, align 4, !tbaa !9
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %296

295:                                              ; preds = %292
  store i32 6, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %309

296:                                              ; preds = %292
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.qpl_job, ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !69
  %300 = getelementptr inbounds i8, ptr %299, i32 1
  store ptr %300, ptr %298, align 8, !tbaa !69
  %301 = load ptr, ptr %11, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %301, i32 0, i32 3
  store ptr %300, ptr %302, align 1, !tbaa !39
  %303 = load ptr, ptr %6, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.qpl_job, ptr %303, i32 0, i32 1
  %305 = load i32, ptr %304, align 8, !tbaa !68
  %306 = add i32 %305, -1
  store i32 %306, ptr %304, align 8, !tbaa !68
  %307 = load ptr, ptr %11, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %307, i32 0, i32 5
  store i32 %306, ptr %308, align 1, !tbaa !40
  store i32 0, ptr %13, align 4
  br label %309

309:                                              ; preds = %296, %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  %310 = load i32, ptr %13, align 4
  switch i32 %310, label %410 [
    i32 0, label %311
  ]

311:                                              ; preds = %309
  br label %312

312:                                              ; preds = %311, %232
  %313 = load ptr, ptr %12, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.hw_iaa_aecs_analytic, ptr %313, i32 0, i32 2
  %315 = load i8, ptr %17, align 1, !tbaa !51, !range !48, !noundef !49
  %316 = trunc i8 %315 to i1
  call void @_ZL44hw_iaa_aecs_decompress_state_set_aecs_formatP22hw_iaa_aecs_decompressb(ptr noundef %314, i1 noundef zeroext %316)
  %317 = load ptr, ptr %6, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.qpl_job, ptr %317, i32 0, i32 7
  %319 = load i32, ptr %318, align 4, !tbaa !29
  %320 = and i32 %319, 513
  %321 = icmp eq i32 %320, 513
  br i1 %321, label %322, label %325

322:                                              ; preds = %312
  %323 = load i32, ptr %14, align 4, !tbaa !9
  %324 = or i32 %323, 4194304
  store i32 %324, ptr %14, align 4, !tbaa !9
  br label %325

325:                                              ; preds = %322, %312
  %326 = load ptr, ptr %6, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.qpl_job, ptr %326, i32 0, i32 7
  %328 = load i32, ptr %327, align 4, !tbaa !29
  %329 = and i32 %328, 513
  %330 = icmp eq i32 %329, 512
  br i1 %330, label %331, label %340

331:                                              ; preds = %325
  %332 = load i16, ptr %15, align 2, !tbaa !46
  %333 = zext i16 %332 to i32
  %334 = or i32 %333, 2
  %335 = trunc i32 %334 to i16
  store i16 %335, ptr %15, align 2, !tbaa !46
  %336 = load ptr, ptr %12, align 8, !tbaa !5
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.qpl_job, ptr %337, i32 0, i32 8
  %339 = load i32, ptr %338, align 8, !tbaa !70
  call void @_ZL35hw_iaa_aecs_decompress_set_crc_seedP20hw_iaa_aecs_analyticj(ptr noundef %336, i32 noundef %339)
  br label %365

340:                                              ; preds = %325
  %341 = load i32, ptr %7, align 4, !tbaa !9
  %342 = icmp ne i32 %341, 0
  br i1 %342, label %343, label %350

343:                                              ; preds = %340
  %344 = load i32, ptr %14, align 4, !tbaa !9
  %345 = or i32 %344, 524288
  store i32 %345, ptr %14, align 4, !tbaa !9
  %346 = load i16, ptr %15, align 2, !tbaa !46
  %347 = zext i16 %346 to i32
  %348 = or i32 %347, 2
  %349 = trunc i32 %348 to i16
  store i16 %349, ptr %15, align 2, !tbaa !46
  br label %364

350:                                              ; preds = %340
  %351 = load i32, ptr %14, align 4, !tbaa !9
  %352 = or i32 %351, 262144
  store i32 %352, ptr %14, align 4, !tbaa !9
  %353 = load ptr, ptr %6, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.qpl_job, ptr %353, i32 0, i32 7
  %355 = load i32, ptr %354, align 4, !tbaa !29
  %356 = and i32 %355, 2048
  %357 = icmp ne i32 %356, 0
  br i1 %357, label %358, label %363

358:                                              ; preds = %350
  %359 = load i16, ptr %15, align 2, !tbaa !46
  %360 = zext i16 %359 to i32
  %361 = or i32 %360, 2
  %362 = trunc i32 %361 to i16
  store i16 %362, ptr %15, align 2, !tbaa !46
  br label %363

363:                                              ; preds = %358, %350
  br label %364

364:                                              ; preds = %363, %343
  br label %365

365:                                              ; preds = %364, %331
  %366 = load ptr, ptr %10, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.qpl_hw_state, ptr %366, i32 0, i32 7
  %368 = load i32, ptr %367, align 4, !tbaa !11
  %369 = icmp ne i32 %368, 0
  br i1 %369, label %370, label %373

370:                                              ; preds = %365
  %371 = load i32, ptr %14, align 4, !tbaa !9
  %372 = or i32 %371, 4194304
  store i32 %372, ptr %14, align 4, !tbaa !9
  br label %373

373:                                              ; preds = %370, %365
  %374 = load i32, ptr %14, align 4, !tbaa !9
  %375 = load ptr, ptr %11, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %375, i32 0, i32 1
  store i32 %374, ptr %376, align 1, !tbaa !71
  %377 = load i16, ptr %15, align 2, !tbaa !46
  %378 = load ptr, ptr %11, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.hw_decompress_analytics_descriptor, ptr %378, i32 0, i32 7
  store i16 %377, ptr %379, align 1, !tbaa !72
  %380 = load ptr, ptr %6, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.qpl_job, ptr %380, i32 0, i32 7
  %382 = load i32, ptr %381, align 4, !tbaa !29
  %383 = and i32 %382, 32
  %384 = icmp ne i32 %383, 0
  br i1 %384, label %402, label %385

385:                                              ; preds = %373
  %386 = load ptr, ptr %11, align 8, !tbaa !5
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.qpl_job, ptr %387, i32 0, i32 19
  %389 = load i8, ptr %388, align 8, !tbaa !73
  %390 = zext i8 %389 to i32
  %391 = load i32, ptr %7, align 4, !tbaa !9
  %392 = icmp ne i32 %391, 0
  br i1 %392, label %400, label %393

393:                                              ; preds = %385
  %394 = load ptr, ptr %6, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.qpl_job, ptr %394, i32 0, i32 19
  %396 = load i8, ptr %395, align 8, !tbaa !73
  %397 = zext i8 %396 to i32
  %398 = and i32 %397, 8
  %399 = icmp ne i32 %398, 0
  br label %400

400:                                              ; preds = %393, %385
  %401 = phi i1 [ true, %385 ], [ %399, %393 ]
  call void @hw_iaa_descriptor_set_inflate_stop_check_rule(ptr noundef %386, i32 noundef %390, i1 noundef zeroext %401)
  br label %402

402:                                              ; preds = %400, %373
  %403 = load ptr, ptr %11, align 8, !tbaa !5
  %404 = load ptr, ptr %10, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.qpl_hw_state, ptr %404, i32 0, i32 1
  %406 = load ptr, ptr %6, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.qpl_job, ptr %406, i32 0, i32 38
  %408 = load i32, ptr %407, align 4, !tbaa !74
  %409 = call noundef i32 @_ZN3qpl2ml4util18process_descriptorI10qpl_statusLNS1_16execution_mode_tE1EEET_P13hw_descriptorPV20hw_completion_recordi(ptr noundef %403, ptr noundef %405, i32 noundef %408) #6
  store i32 %409, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %410

410:                                              ; preds = %402, %309, %169, %158
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %411

411:                                              ; preds = %410, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %412 = load i32, ptr %5, align 4
  ret i32 %412
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN3qpl3jobL9get_stateEPK7qpl_job(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3qpl2ml4util38are_iaa_gen_2_min_capabilities_presentEv() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z30check_huffman_table_is_correctILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z20use_as_huffman_tableILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef) #3

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_sw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72)) #4

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_hw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72)) #4

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE25get_deflate_header_bufferEv(ptr noundef nonnull align 8 dereferenceable(72)) #4

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE27get_lookup_table_buffer_ptrEv(ptr noundef nonnull align 8 dereferenceable(72)) #4

declare void @_ZN3qpl2ml11compression27decompression_huffman_tableC1EPhS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(35), ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #5

declare void @hw_iaa_aecs_decompress_set_huffman_only_huffman_table(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare noundef ptr @_ZN3qpl2ml11compression27decompression_huffman_table26get_sw_decompression_tableEv(ptr noundef nonnull align 8 dereferenceable(35)) #4

; Function Attrs: nounwind
declare noundef i64 @_ZN3qpl2ml11compression31get_history_size_for_dictionaryE25hardware_dictionary_level(i8 noundef signext) #4

declare void @hw_iaa_aecs_decompress_set_dictionary(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef) #5

; Function Attrs: nounwind
declare noundef ptr @_ZN3qpl2ml11compression19get_dictionary_dataER14qpl_dictionary(ptr noundef nonnull align 8 dereferenceable(40)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL46hw_iaa_aecs_decompress_set_decompression_stateP22hw_iaa_aecs_decompress28hw_iaa_aecs_decompress_state(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3qpl7core_sw4util9set_zerosIPhEEvT_m(ptr noundef, i64 noundef) #2

declare i32 @hw_iaa_aecs_decompress_set_input_accumulator(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL44hw_iaa_aecs_decompress_state_set_aecs_formatP22hw_iaa_aecs_decompressb(ptr noundef, i1 noundef zeroext) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL35hw_iaa_aecs_decompress_set_crc_seedP20hw_iaa_aecs_analyticj(ptr noundef, i32 noundef) #2

declare void @hw_iaa_descriptor_set_inflate_stop_check_rule(ptr noundef, i32 noundef, i1 noundef zeroext) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3qpl2ml4util18process_descriptorI10qpl_statusLNS1_16execution_mode_tE1EEET_P13hw_descriptorPV20hw_completion_recordi(ptr noundef, ptr noundef, i32 noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 39652}
!12 = !{!"_ZTS12qpl_hw_state", !13, i64 0, !15, i64 64, !7, i64 128, !7, i64 10880, !17, i64 38592, !18, i64 39624, !10, i64 39648, !10, i64 39652, !10, i64 39656, !22, i64 39660, !10, i64 39664, !23, i64 39672, !10, i64 39704, !10, i64 39708, !19, i64 39712, !19, i64 39713, !25, i64 39716, !26, i64 39720, !27, i64 39728}
!13 = !{!"_ZTS34hw_decompress_analytics_descriptor", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !14, i64 36, !14, i64 38, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTS24hw_iaa_completion_record", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !10, i64 4, !16, i64 8, !16, i64 16, !10, i64 24, !7, i64 28, !7, i64 29, !14, i64 30, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !16, i64 48, !16, i64 56}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTS10qpl_buffer", !7, i64 0, !10, i64 1024, !10, i64 1028}
!18 = !{!"_ZTS21qpl_execution_history", !19, i64 0, !20, i64 4, !21, i64 8, !10, i64 12, !6, i64 16}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTS23qpl_task_execution_step", !7, i64 0}
!21 = !{!"_ZTS14qpl_comp_style", !7, i64 0}
!22 = !{!"_ZTS15hw_huffman_code", !14, i64 0, !7, i64 2, !7, i64 3}
!23 = !{!"_ZTS22hw_accelerator_context", !24, i64 0, !6, i64 24}
!24 = !{!"_ZTS20hw_device_properties", !10, i64 0, !10, i64 4, !10, i64 8, !19, i64 12, !19, i64 13, !19, i64 14, !19, i64 15, !19, i64 16, !19, i64 17, !19, i64 18, !19, i64 19, !19, i64 20, !19, i64 21, !19, i64 22}
!25 = !{!"_ZTS25hw_multidescriptor_status", !7, i64 0}
!26 = !{!"_ZTS10qpl_status", !7, i64 0}
!27 = !{!"_ZTS20qpl_execution_record", !28, i64 0, !10, i64 8, !10, i64 12}
!28 = !{!"double", !7, i64 0}
!29 = !{!30, !10, i64 36}
!30 = !{!"_ZTS7qpl_job", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24, !10, i64 28, !31, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !32, i64 52, !33, i64 56, !6, i64 64, !6, i64 72, !34, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !7, i64 104, !7, i64 105, !7, i64 106, !16, i64 112, !16, i64 120, !6, i64 128, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !35, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !36, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !37, i64 192}
!31 = !{!"_ZTS13qpl_operation", !7, i64 0}
!32 = !{!"_ZTS22qpl_compression_levels", !7, i64 0}
!33 = !{!"_ZTS19qpl_statistics_mode", !7, i64 0}
!34 = !{!"_ZTS19qpl_mini_block_size", !7, i64 0}
!35 = !{!"_ZTS14qpl_out_format", !7, i64 0}
!36 = !{!"_ZTS10qpl_parser", !7, i64 0}
!37 = !{!"_ZTS12qpl_aux_data", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !38, i64 40}
!38 = !{!"_ZTS10qpl_path_t", !7, i64 0}
!39 = !{!13, !6, i64 16}
!40 = !{!13, !10, i64 32}
!41 = !{!30, !6, i64 16}
!42 = !{!13, !6, i64 24}
!43 = !{!30, !10, i64 24}
!44 = !{!13, !10, i64 48}
!45 = !{!30, !7, i64 106}
!46 = !{!14, !14, i64 0}
!47 = !{!12, !19, i64 39624}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!30, !6, i64 72}
!51 = !{!19, !19, i64 0}
!52 = !{!30, !6, i64 64}
!53 = !{!26, !26, i64 0}
!54 = !{!55, !57, i64 1}
!55 = !{!"_ZTS14qpl_dictionary", !56, i64 0, !57, i64 1, !16, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!56 = !{!"_ZTS26software_compression_level", !7, i64 0}
!57 = !{!"_ZTS25hardware_dictionary_level", !7, i64 0}
!58 = !{!55, !16, i64 8}
!59 = !{!16, !16, i64 0}
!60 = !{!55, !10, i64 16}
!61 = !{!30, !7, i64 105}
!62 = !{!63, !10, i64 180}
!63 = !{!"_ZTS20hw_iaa_aecs_analytic", !64, i64 0, !7, i64 24, !65, i64 168}
!64 = !{!"_ZTS18hw_iaa_aecs_filter", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!65 = !{!"_ZTS22hw_iaa_aecs_decompress", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 272, !10, i64 304, !7, i64 308, !7, i64 309, !14, i64 310, !7, i64 312, !7, i64 332, !7, i64 352, !7, i64 372, !7, i64 392, !7, i64 640, !14, i64 908, !14, i64 910, !7, i64 912, !66, i64 1084, !14, i64 1086, !7, i64 1088, !7, i64 5184}
!66 = !{!"_ZTSN22hw_iaa_aecs_decompressUt1_E", !14, i64 0, !14, i64 1}
!67 = !{!63, !14, i64 1076}
!68 = !{!30, !10, i64 8}
!69 = !{!30, !6, i64 0}
!70 = !{!30, !10, i64 40}
!71 = !{!13, !10, i64 4}
!72 = !{!13, !14, i64 38}
!73 = !{!30, !7, i64 104}
!74 = !{!30, !10, i64 188}


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

%"class.qpl::ml::compression::decompression_huffman_table" = type <{ ptr, ptr, ptr, ptr, i8, i8, i8, [5 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @hw_submit_decompress_job(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca %"class.qpl::ml::compression::decompression_huffman_table", align 8
  %6 = tail call noundef ptr @_ZN3qpl3jobL9get_stateEPK7qpl_job(ptr noundef %0) #6
  %7 = getelementptr inbounds i8, ptr %6, i64 128
  %8 = getelementptr inbounds i8, ptr %6, i64 39652
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = zext i32 %9 to i64
  %11 = getelementptr inbounds i8, ptr %7, i64 %10
  %12 = getelementptr inbounds i8, ptr %0, i64 36
  %13 = load i32, ptr %12, align 4, !tbaa !27
  %14 = and i32 %13, 513
  %15 = icmp eq i32 %14, 513
  %16 = getelementptr inbounds i8, ptr %6, i64 1376
  %spec.select = select i1 %15, ptr %16, ptr %11
  %17 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %2, ptr %17, align 1, !tbaa !37
  %18 = getelementptr inbounds i8, ptr %6, i64 32
  store i32 %3, ptr %18, align 1, !tbaa !38
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !39
  %21 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %20, ptr %21, align 1, !tbaa !40
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  %23 = load i32, ptr %22, align 8, !tbaa !41
  %24 = getelementptr inbounds i8, ptr %6, i64 48
  store i32 %23, ptr %24, align 1, !tbaa !42
  %25 = shl i32 %13, 19
  %26 = and i32 %25, 2097152
  %27 = shl i32 %13, 1
  %28 = and i32 %27, 32
  %29 = getelementptr inbounds i8, ptr %0, i64 106
  %30 = load i8, ptr %29, align 2, !tbaa !43
  %31 = and i8 %30, 7
  %32 = zext nneg i8 %31 to i32
  %33 = shl nuw nsw i32 %32, 6
  %34 = or disjoint i32 %33, %28
  %35 = trunc nuw nsw i32 %34 to i16
  %36 = or disjoint i16 %35, 1
  %37 = tail call noundef zeroext i1 @_ZN3qpl2ml4util38are_iaa_gen_2_min_capabilities_presentEv()
  br i1 %37, label %38, label %43

38:                                               ; preds = %4
  %39 = load i8, ptr %29, align 2, !tbaa !43
  %40 = icmp ugt i8 %39, 7
  %41 = select i1 %40, i16 16384, i16 0
  %42 = or disjoint i16 %41, %36
  br label %43

43:                                               ; preds = %38, %4
  %.0112 = phi i16 [ %42, %38 ], [ %36, %4 ]
  %44 = load i32, ptr %12, align 4, !tbaa !27
  %45 = and i32 %44, 1
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %46, label %50

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %6, i64 39624
  %48 = load i8, ptr %47, align 8, !tbaa !44, !range !45, !noundef !46
  %49 = trunc nuw i8 %48 to i1
  br i1 %49, label %54, label %50

50:                                               ; preds = %46, %43
  %51 = getelementptr inbounds i8, ptr %0, i64 72
  %52 = load ptr, ptr %51, align 8, !tbaa !47
  %53 = icmp ne ptr %52, null
  br label %54

54:                                               ; preds = %50, %46
  %55 = phi i1 [ false, %46 ], [ %53, %50 ]
  %56 = tail call noundef zeroext i1 @_ZN3qpl2ml4util38are_iaa_gen_2_min_capabilities_presentEv()
  %57 = getelementptr inbounds i8, ptr %6, i64 39624
  %58 = load i8, ptr %57, align 8, !tbaa !44, !range !45, !noundef !46
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %62

60:                                               ; preds = %54
  %61 = or disjoint i32 %26, 1107361792
  br label %81

62:                                               ; preds = %54
  store i8 1, ptr %57, align 8, !tbaa !44
  %spec.select126.v = select i1 %55, i32 1107361792, i32 1107296256
  %spec.select126 = or disjoint i32 %spec.select126.v, %26
  %63 = load i32, ptr %12, align 4, !tbaa !27
  %64 = and i32 %63, 32
  %.not117 = icmp eq i32 %64, 0
  br i1 %.not117, label %81, label %65

65:                                               ; preds = %62
  %66 = or disjoint i32 %26, 1107361792
  %67 = getelementptr inbounds i8, ptr %0, i64 64
  %68 = load ptr, ptr %67, align 8, !tbaa !48
  %69 = icmp eq ptr %68, null
  br i1 %69, label %177, label %70

70:                                               ; preds = %65
  %71 = tail call noundef i32 @_Z30check_huffman_table_is_correctILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef nonnull %68)
  %.not118 = icmp eq i32 %71, 0
  br i1 %.not118, label %72, label %177

72:                                               ; preds = %70
  %73 = load ptr, ptr %67, align 8, !tbaa !48
  %74 = tail call noundef ptr @_Z20use_as_huffman_tableILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef %73)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  %75 = tail call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_sw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72) %74) #6
  %76 = tail call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_hw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72) %74) #6
  %77 = tail call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE25get_deflate_header_bufferEv(ptr noundef nonnull align 8 dereferenceable(72) %74) #6
  %78 = tail call noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE27get_lookup_table_buffer_ptrEv(ptr noundef nonnull align 8 dereferenceable(72) %74) #6
  call void @_ZN3qpl2ml11compression27decompression_huffman_tableC1EPhS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(35) %5, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78)
  %79 = getelementptr inbounds i8, ptr %spec.select, i64 168
  %80 = call noundef ptr @_ZN3qpl2ml11compression27decompression_huffman_table26get_sw_decompression_tableEv(ptr noundef nonnull align 8 dereferenceable(35) %5) #6
  call void @hw_iaa_aecs_decompress_set_huffman_only_huffman_table(ptr noundef nonnull %79, ptr noundef %80)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  br label %81

81:                                               ; preds = %62, %72, %60
  %.1108 = phi i32 [ %61, %60 ], [ %66, %72 ], [ %spec.select126, %62 ]
  br i1 %55, label %82, label %103

82:                                               ; preds = %81
  %83 = getelementptr inbounds i8, ptr %0, i64 72
  %84 = load ptr, ptr %83, align 8, !tbaa !47
  %85 = getelementptr inbounds i8, ptr %84, i64 1
  %86 = load i8, ptr %85, align 1, !tbaa !49
  %87 = icmp eq i8 %86, -1
  br i1 %87, label %.thread, label %90

.thread:                                          ; preds = %82
  %88 = getelementptr inbounds i8, ptr %84, i64 8
  %89 = load i64, ptr %88, align 8, !tbaa !53
  br label %96

90:                                               ; preds = %82
  %91 = call noundef i64 @_ZN3qpl2ml11compression31get_history_size_for_dictionaryE25hardware_dictionary_level(i8 noundef signext %86) #6
  %.pr = load i8, ptr %85, align 1, !tbaa !49
  %92 = icmp eq i8 %.pr, -1
  br i1 %92, label %96, label %93

93:                                               ; preds = %90
  %94 = getelementptr inbounds i8, ptr %84, i64 16
  %95 = load i32, ptr %94, align 8, !tbaa !54
  br label %96

96:                                               ; preds = %.thread, %90, %93
  %97 = phi i64 [ %91, %93 ], [ %91, %90 ], [ %89, %.thread ]
  %98 = phi i32 [ %95, %93 ], [ 0, %90 ], [ 0, %.thread ]
  %99 = getelementptr inbounds i8, ptr %spec.select, i64 168
  %100 = call noundef ptr @_ZN3qpl2ml11compression19get_dictionary_dataER14qpl_dictionary(ptr noundef nonnull align 8 dereferenceable(40) %84) #6
  %101 = getelementptr inbounds i8, ptr %84, i64 8
  %102 = load i64, ptr %101, align 8, !tbaa !53
  call void @hw_iaa_aecs_decompress_set_dictionary(ptr noundef nonnull %99, ptr noundef %100, i64 noundef %102, i64 noundef %97, i32 noundef %98)
  call void @_ZL46hw_iaa_aecs_decompress_set_decompression_stateP22hw_iaa_aecs_decompress28hw_iaa_aecs_decompress_state(ptr noundef nonnull %99, i32 noundef 1)
  br label %103

103:                                              ; preds = %96, %81
  %104 = getelementptr inbounds i8, ptr %0, i64 105
  %105 = load i8, ptr %104, align 1, !tbaa !55
  %.not119 = icmp eq i8 %105, 0
  br i1 %.not119, label %138, label %106

106:                                              ; preds = %103
  %107 = load i32, ptr %12, align 4, !tbaa !27
  %108 = and i32 %107, 513
  %109 = icmp eq i32 %108, 513
  br i1 %109, label %110, label %117

110:                                              ; preds = %106
  %111 = or i32 %.1108, 65536
  call void @_ZN3qpl7core_sw4util9set_zerosIPhEEvT_m(ptr noundef nonnull %spec.select, i64 noundef 1248) #6
  %112 = load i8, ptr %104, align 1, !tbaa !55
  %113 = and i8 %112, 7
  %114 = zext nneg i8 %113 to i32
  %115 = getelementptr inbounds i8, ptr %spec.select, i64 180
  store i32 %114, ptr %115, align 4, !tbaa !56
  %116 = getelementptr inbounds i8, ptr %spec.select, i64 1076
  store i16 1, ptr %116, align 4, !tbaa !61
  br label %117

117:                                              ; preds = %110, %106
  %118 = phi i8 [ %112, %110 ], [ %105, %106 ]
  %.2109 = phi i32 [ %111, %110 ], [ %.1108, %106 ]
  %119 = getelementptr inbounds i8, ptr %spec.select, i64 168
  %120 = load ptr, ptr %17, align 1, !tbaa !37
  %121 = getelementptr inbounds i8, ptr %0, i64 8
  %122 = load i32, ptr %121, align 8, !tbaa !62
  %123 = load i8, ptr %29, align 2, !tbaa !43
  %124 = call i32 @hw_iaa_aecs_decompress_set_input_accumulator(ptr noundef nonnull %119, ptr noundef %120, i32 noundef %122, i8 noundef zeroext %118, i8 noundef zeroext %123)
  %125 = load i32, ptr %121, align 8, !tbaa !62
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %134

127:                                              ; preds = %117
  %128 = load i8, ptr %29, align 2, !tbaa !43
  %129 = and i8 %128, 7
  %130 = zext nneg i8 %129 to i16
  %131 = shl nuw nsw i16 %130, 6
  %132 = xor i16 %131, -1
  %133 = and i16 %.0112, %132
  br label %134

134:                                              ; preds = %127, %117
  %.1113 = phi i16 [ %133, %127 ], [ %.0112, %117 ]
  %.not120 = icmp eq i32 %124, 0
  br i1 %.not120, label %.thread130, label %177

.thread130:                                       ; preds = %134
  %135 = load ptr, ptr %0, align 8, !tbaa !63
  %136 = getelementptr inbounds i8, ptr %135, i64 1
  store ptr %136, ptr %0, align 8, !tbaa !63
  store ptr %136, ptr %17, align 1, !tbaa !37
  %137 = add i32 %125, -1
  store i32 %137, ptr %121, align 8, !tbaa !62
  store i32 %137, ptr %18, align 1, !tbaa !38
  br label %138

138:                                              ; preds = %.thread130, %103
  %.2114 = phi i16 [ %.0112, %103 ], [ %.1113, %.thread130 ]
  %.3110 = phi i32 [ %.1108, %103 ], [ %.2109, %.thread130 ]
  %139 = getelementptr inbounds i8, ptr %spec.select, i64 168
  call void @_ZL44hw_iaa_aecs_decompress_state_set_aecs_formatP22hw_iaa_aecs_decompressb(ptr noundef nonnull %139, i1 noundef zeroext %56)
  %140 = load i32, ptr %12, align 4, !tbaa !27
  %141 = and i32 %140, 513
  %142 = icmp eq i32 %141, 513
  %143 = or i32 %.3110, 4194304
  %spec.select127 = select i1 %142, i32 %143, i32 %.3110
  %144 = icmp eq i32 %141, 512
  br i1 %144, label %145, label %149

145:                                              ; preds = %138
  %146 = or i16 %.2114, 2
  %147 = getelementptr inbounds i8, ptr %0, i64 40
  %148 = load i32, ptr %147, align 8, !tbaa !64
  call void @_ZL35hw_iaa_aecs_decompress_set_crc_seedP20hw_iaa_aecs_analyticj(ptr noundef nonnull %spec.select, i32 noundef %148)
  %.pre = load i32, ptr %12, align 4, !tbaa !27
  br label %158

149:                                              ; preds = %138
  %.not121 = icmp eq i32 %1, 0
  br i1 %.not121, label %153, label %150

150:                                              ; preds = %149
  %151 = or i32 %spec.select127, 524288
  %152 = or i16 %.2114, 2
  br label %158

153:                                              ; preds = %149
  %154 = or i32 %spec.select127, 262144
  %155 = trunc i32 %140 to i16
  %156 = lshr i16 %155, 10
  %157 = and i16 %156, 2
  %spec.select128 = or i16 %157, %.2114
  br label %158

158:                                              ; preds = %153, %150, %145
  %159 = phi i32 [ %.pre, %145 ], [ %140, %150 ], [ %140, %153 ]
  %.3115 = phi i16 [ %146, %145 ], [ %152, %150 ], [ %spec.select128, %153 ]
  %.5 = phi i32 [ %spec.select127, %145 ], [ %151, %150 ], [ %154, %153 ]
  %160 = load i32, ptr %8, align 4, !tbaa !5
  %.not123 = icmp eq i32 %160, 0
  %161 = or i32 %.5, 4194304
  %spec.select129 = select i1 %.not123, i32 %.5, i32 %161
  %162 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 %spec.select129, ptr %162, align 1, !tbaa !65
  %163 = getelementptr inbounds i8, ptr %6, i64 38
  store i16 %.3115, ptr %163, align 1, !tbaa !66
  %164 = and i32 %159, 32
  %.not124 = icmp eq i32 %164, 0
  br i1 %.not124, label %165, label %172

165:                                              ; preds = %158
  %166 = getelementptr inbounds i8, ptr %0, i64 104
  %167 = load i8, ptr %166, align 8, !tbaa !67
  %168 = zext i8 %167 to i32
  %169 = and i32 %168, 8
  %170 = or i32 %169, %1
  %171 = icmp ne i32 %170, 0
  call void @hw_iaa_descriptor_set_inflate_stop_check_rule(ptr noundef nonnull %6, i32 noundef %168, i1 noundef zeroext %171)
  br label %172

172:                                              ; preds = %165, %158
  %173 = getelementptr inbounds i8, ptr %6, i64 64
  %174 = getelementptr inbounds i8, ptr %0, i64 188
  %175 = load i32, ptr %174, align 4, !tbaa !68
  %176 = call noundef i32 @_ZN3qpl2ml4util18process_descriptorI10qpl_statusLNS1_16execution_mode_tE1EEET_P13hw_descriptorPV20hw_completion_recordi(ptr noundef nonnull %6, ptr noundef nonnull %173, i32 noundef %175) #6
  br label %177

177:                                              ; preds = %134, %172, %70, %65
  %.3 = phi i32 [ %176, %172 ], [ %71, %70 ], [ 55, %65 ], [ 6, %134 ]
  ret i32 %.3
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3qpl2ml4util38are_iaa_gen_2_min_capabilities_presentEv() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z30check_huffman_table_is_correctILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z20use_as_huffman_tableILN3qpl2ml11compression23compression_algorithm_eE2EEDaP17qpl_huffman_table(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_sw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE33get_hw_decompression_table_bufferEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE25get_deflate_header_bufferEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef ptr @_ZNK3qpl2ml11compression15huffman_table_tILNS1_23compression_algorithm_eE2EE27get_lookup_table_buffer_ptrEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

declare void @_ZN3qpl2ml11compression27decompression_huffman_tableC1EPhS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(35), ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #5

declare void @hw_iaa_aecs_decompress_set_huffman_only_huffman_table(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare noundef ptr @_ZN3qpl2ml11compression27decompression_huffman_table26get_sw_decompression_tableEv(ptr noundef nonnull align 8 dereferenceable(35)) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef i64 @_ZN3qpl2ml11compression31get_history_size_for_dictionaryE25hardware_dictionary_level(i8 noundef signext) local_unnamed_addr #4

declare void @hw_iaa_aecs_decompress_set_dictionary(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare noundef ptr @_ZN3qpl2ml11compression19get_dictionary_dataER14qpl_dictionary(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL46hw_iaa_aecs_decompress_set_decompression_stateP22hw_iaa_aecs_decompress28hw_iaa_aecs_decompress_state(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3qpl7core_sw4util9set_zerosIPhEEvT_m(ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @hw_iaa_aecs_decompress_set_input_accumulator(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL44hw_iaa_aecs_decompress_state_set_aecs_formatP22hw_iaa_aecs_decompressb(ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL35hw_iaa_aecs_decompress_set_crc_seedP20hw_iaa_aecs_analyticj(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @hw_iaa_descriptor_set_inflate_stop_check_rule(ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3qpl2ml4util18process_descriptorI10qpl_statusLNS1_16execution_mode_tE1EEET_P13hw_descriptorPV20hw_completion_recordi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 39652}
!6 = !{!"_ZTS12qpl_hw_state", !7, i64 0, !13, i64 64, !9, i64 128, !9, i64 10880, !15, i64 38592, !16, i64 39624, !8, i64 39648, !8, i64 39652, !8, i64 39656, !20, i64 39660, !8, i64 39664, !21, i64 39672, !8, i64 39704, !8, i64 39708, !17, i64 39712, !17, i64 39713, !23, i64 39716, !24, i64 39720, !25, i64 39728}
!7 = !{!"_ZTS34hw_decompress_analytics_descriptor", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !8, i64 32, !12, i64 36, !12, i64 38, !11, i64 40, !8, i64 48, !8, i64 52, !8, i64 56, !8, i64 60}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTS24hw_iaa_completion_record", !9, i64 0, !9, i64 1, !9, i64 2, !9, i64 3, !8, i64 4, !14, i64 8, !14, i64 16, !8, i64 24, !9, i64 28, !9, i64 29, !12, i64 30, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44, !14, i64 48, !14, i64 56}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTS10qpl_buffer", !9, i64 0, !8, i64 1024, !8, i64 1028}
!16 = !{!"_ZTS21qpl_execution_history", !17, i64 0, !18, i64 4, !19, i64 8, !8, i64 12, !11, i64 16}
!17 = !{!"bool", !9, i64 0}
!18 = !{!"_ZTS23qpl_task_execution_step", !9, i64 0}
!19 = !{!"_ZTS14qpl_comp_style", !9, i64 0}
!20 = !{!"_ZTS15hw_huffman_code", !12, i64 0, !9, i64 2, !9, i64 3}
!21 = !{!"_ZTS22hw_accelerator_context", !22, i64 0, !11, i64 24}
!22 = !{!"_ZTS20hw_device_properties", !8, i64 0, !8, i64 4, !8, i64 8, !17, i64 12, !17, i64 13, !17, i64 14, !17, i64 15, !17, i64 16, !17, i64 17, !17, i64 18, !17, i64 19, !17, i64 20, !17, i64 21, !17, i64 22}
!23 = !{!"_ZTS25hw_multidescriptor_status", !9, i64 0}
!24 = !{!"_ZTS10qpl_status", !9, i64 0}
!25 = !{!"_ZTS20qpl_execution_record", !26, i64 0, !8, i64 8, !8, i64 12}
!26 = !{!"double", !9, i64 0}
!27 = !{!28, !8, i64 36}
!28 = !{!"_ZTS7qpl_job", !11, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !8, i64 24, !8, i64 28, !29, i64 32, !8, i64 36, !8, i64 40, !8, i64 44, !8, i64 48, !30, i64 52, !31, i64 56, !11, i64 64, !11, i64 72, !32, i64 80, !11, i64 88, !8, i64 96, !8, i64 100, !9, i64 104, !9, i64 105, !9, i64 106, !14, i64 112, !14, i64 120, !11, i64 128, !8, i64 136, !8, i64 140, !8, i64 144, !8, i64 148, !33, i64 152, !8, i64 156, !8, i64 160, !8, i64 164, !8, i64 168, !34, i64 172, !8, i64 176, !8, i64 180, !8, i64 184, !8, i64 188, !35, i64 192}
!29 = !{!"_ZTS13qpl_operation", !9, i64 0}
!30 = !{!"_ZTS22qpl_compression_levels", !9, i64 0}
!31 = !{!"_ZTS19qpl_statistics_mode", !9, i64 0}
!32 = !{!"_ZTS19qpl_mini_block_size", !9, i64 0}
!33 = !{!"_ZTS14qpl_out_format", !9, i64 0}
!34 = !{!"_ZTS10qpl_parser", !9, i64 0}
!35 = !{!"_ZTS12qpl_aux_data", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !36, i64 40}
!36 = !{!"_ZTS10qpl_path_t", !9, i64 0}
!37 = !{!7, !11, i64 16}
!38 = !{!7, !8, i64 32}
!39 = !{!28, !11, i64 16}
!40 = !{!7, !11, i64 24}
!41 = !{!28, !8, i64 24}
!42 = !{!7, !8, i64 48}
!43 = !{!28, !9, i64 106}
!44 = !{!6, !17, i64 39624}
!45 = !{i8 0, i8 2}
!46 = !{}
!47 = !{!28, !11, i64 72}
!48 = !{!28, !11, i64 64}
!49 = !{!50, !52, i64 1}
!50 = !{!"_ZTS14qpl_dictionary", !51, i64 0, !52, i64 1, !14, i64 8, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32}
!51 = !{!"_ZTS26software_compression_level", !9, i64 0}
!52 = !{!"_ZTS25hardware_dictionary_level", !9, i64 0}
!53 = !{!50, !14, i64 8}
!54 = !{!50, !8, i64 16}
!55 = !{!28, !9, i64 105}
!56 = !{!57, !8, i64 180}
!57 = !{!"_ZTS20hw_iaa_aecs_analytic", !58, i64 0, !9, i64 24, !59, i64 168}
!58 = !{!"_ZTS18hw_iaa_aecs_filter", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20}
!59 = !{!"_ZTS22hw_iaa_aecs_decompress", !9, i64 0, !8, i64 8, !8, i64 12, !9, i64 16, !9, i64 272, !8, i64 304, !9, i64 308, !9, i64 309, !12, i64 310, !9, i64 312, !9, i64 332, !9, i64 352, !9, i64 372, !9, i64 392, !9, i64 640, !12, i64 908, !12, i64 910, !9, i64 912, !60, i64 1084, !12, i64 1086, !9, i64 1088, !9, i64 5184}
!60 = !{!"_ZTSN22hw_iaa_aecs_decompressUt1_E", !12, i64 0, !12, i64 1}
!61 = !{!57, !12, i64 1076}
!62 = !{!28, !8, i64 8}
!63 = !{!28, !11, i64 0}
!64 = !{!28, !8, i64 40}
!65 = !{!7, !8, i64 4}
!66 = !{!7, !12, i64 38}
!67 = !{!28, !9, i64 104}
!68 = !{!28, !8, i64 188}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass