; LLVM IR from JayXon/Leanify :: lib/mozjpeg (jctrans)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.jpeg_compress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, double, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], [16 x i8], [16 x i8], [16 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.jpeg_error_mgr = type { ptr, ptr, ptr, ptr, ptr, i32, %union.anon, i32, i64, ptr, i32, ptr, i32, i32 }
%union.anon = type { [8 x i32], [48 x i8] }
%struct.jpeg_decompress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], i32, ptr, i32, i32, [16 x i8], [16 x i8], [16 x i8], i32, i32, i8, i8, i8, i16, i16, i32, i8, i32, ptr, i32, i32, i32, i32, ptr, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.jpeg_comp_master = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x [64 x double]], [4 x [64 x double]], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float }
%struct.JQUANT_TBL = type { [64 x i16], i32 }
%struct.jpeg_component_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @jpeg_copy_critical_parameters(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %13, i32 0, i32 5
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = icmp ne i32 %15, 100
  br i1 %16, label %17, label %36

17:                                               ; preds = %2
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %20, i32 0, i32 5
  store i32 20, ptr %21, align 8, !tbaa !15
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %22, i32 0, i32 5
  %24 = load i32, ptr %23, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  %28 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %27, i32 0, i32 6
  %29 = getelementptr inbounds [8 x i32], ptr %28, i64 0, i64 0
  store i32 %24, ptr %29, align 4, !tbaa !18
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  call void %34(ptr noundef %35)
  br label %36

36:                                               ; preds = %17, %2
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %37, i32 0, i32 7
  %39 = load i32, ptr %38, align 8, !tbaa !20
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %40, i32 0, i32 7
  store i32 %39, ptr %41, align 8, !tbaa !22
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %42, i32 0, i32 8
  %44 = load i32, ptr %43, align 4, !tbaa !23
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %45, i32 0, i32 8
  store i32 %44, ptr %46, align 4, !tbaa !24
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %47, i32 0, i32 9
  %49 = load i32, ptr %48, align 8, !tbaa !25
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %50, i32 0, i32 9
  store i32 %49, ptr %51, align 8, !tbaa !26
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %52, i32 0, i32 10
  %54 = load i32, ptr %53, align 4, !tbaa !27
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %55, i32 0, i32 10
  store i32 %54, ptr %56, align 4, !tbaa !28
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  call void @jpeg_set_defaults(ptr noundef %57)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %58, i32 0, i32 54
  %60 = load ptr, ptr %59, align 8, !tbaa !29
  %61 = getelementptr inbounds %struct.jpeg_comp_master, ptr %60, i32 0, i32 6
  store i32 0, ptr %61, align 4, !tbaa !30
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %63, i32 0, i32 10
  %65 = load i32, ptr %64, align 4, !tbaa !27
  call void @jpeg_set_colorspace(ptr noundef %62, i32 noundef %65)
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %66, i32 0, i32 43
  %68 = load i32, ptr %67, align 8, !tbaa !33
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %69, i32 0, i32 12
  store i32 %68, ptr %70, align 8, !tbaa !34
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %71, i32 0, i32 59
  %73 = load i32, ptr %72, align 8, !tbaa !35
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %74, i32 0, i32 27
  store i32 %73, ptr %75, align 4, !tbaa !36
  store i32 0, ptr %10, align 4, !tbaa !37
  br label %76

76:                                               ; preds = %117, %36
  %77 = load i32, ptr %10, align 4, !tbaa !37
  %78 = icmp slt i32 %77, 4
  br i1 %78, label %79, label %120

79:                                               ; preds = %76
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %80, i32 0, i32 40
  %82 = load i32, ptr %10, align 4, !tbaa !37
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4 x ptr], ptr %81, i64 0, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %116

87:                                               ; preds = %79
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %88, i32 0, i32 16
  %90 = load i32, ptr %10, align 4, !tbaa !37
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [4 x ptr], ptr %89, i64 0, i64 %91
  store ptr %92, ptr %5, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = icmp eq ptr %94, null
  br i1 %95, label %96, label %100

96:                                               ; preds = %87
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = call ptr @jpeg_alloc_quant_table(ptr noundef %97)
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %98, ptr %99, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %96, %87
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.JQUANT_TBL, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds [64 x i16], ptr %103, i64 0, i64 0
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %105, i32 0, i32 40
  %107 = load i32, ptr %10, align 4, !tbaa !37
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [4 x ptr], ptr %106, i64 0, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.JQUANT_TBL, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds [64 x i16], ptr %111, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %112, i64 128, i1 false)
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.JQUANT_TBL, ptr %114, i32 0, i32 1
  store i32 0, ptr %115, align 4, !tbaa !38
  br label %116

116:                                              ; preds = %100, %79
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %10, align 4, !tbaa !37
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %10, align 4, !tbaa !37
  br label %76, !llvm.loop !40

120:                                              ; preds = %76
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %121, i32 0, i32 9
  %123 = load i32, ptr %122, align 8, !tbaa !25
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %124, i32 0, i32 13
  store i32 %123, ptr %125, align 4, !tbaa !42
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %126, i32 0, i32 13
  %128 = load i32, ptr %127, align 4, !tbaa !42
  %129 = icmp slt i32 %128, 1
  br i1 %129, label %135, label %130

130:                                              ; preds = %120
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %131, i32 0, i32 13
  %133 = load i32, ptr %132, align 4, !tbaa !42
  %134 = icmp sgt i32 %133, 10
  br i1 %134, label %135, label %159

135:                                              ; preds = %130, %120
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8, !tbaa !14
  %139 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %138, i32 0, i32 5
  store i32 26, ptr %139, align 8, !tbaa !15
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %140, i32 0, i32 13
  %142 = load i32, ptr %141, align 4, !tbaa !42
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !14
  %146 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %145, i32 0, i32 6
  %147 = getelementptr inbounds [8 x i32], ptr %146, i64 0, i64 0
  store i32 %142, ptr %147, align 4, !tbaa !18
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !14
  %151 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %150, i32 0, i32 6
  %152 = getelementptr inbounds [8 x i32], ptr %151, i64 0, i64 1
  store i32 10, ptr %152, align 4, !tbaa !18
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %153, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !14
  %156 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !19
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  call void %157(ptr noundef %158)
  br label %159

159:                                              ; preds = %135, %130
  store i32 0, ptr %11, align 4, !tbaa !37
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %160, i32 0, i32 44
  %162 = load ptr, ptr %161, align 8, !tbaa !43
  store ptr %162, ptr %6, align 8, !tbaa !5
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %163, i32 0, i32 15
  %165 = load ptr, ptr %164, align 8, !tbaa !44
  store ptr %165, ptr %7, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %281, %159
  %167 = load i32, ptr %11, align 4, !tbaa !37
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %168, i32 0, i32 13
  %170 = load i32, ptr %169, align 4, !tbaa !42
  %171 = icmp slt i32 %167, %170
  br i1 %171, label %172, label %288

172:                                              ; preds = %166
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.jpeg_component_info, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 8, !tbaa !45
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.jpeg_component_info, ptr %176, i32 0, i32 0
  store i32 %175, ptr %177, align 8, !tbaa !45
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.jpeg_component_info, ptr %178, i32 0, i32 2
  %180 = load i32, ptr %179, align 8, !tbaa !47
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.jpeg_component_info, ptr %181, i32 0, i32 2
  store i32 %180, ptr %182, align 8, !tbaa !47
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.jpeg_component_info, ptr %183, i32 0, i32 3
  %185 = load i32, ptr %184, align 4, !tbaa !48
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.jpeg_component_info, ptr %186, i32 0, i32 3
  store i32 %185, ptr %187, align 4, !tbaa !48
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.jpeg_component_info, ptr %188, i32 0, i32 4
  %190 = load i32, ptr %189, align 8, !tbaa !49
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.jpeg_component_info, ptr %191, i32 0, i32 4
  store i32 %190, ptr %192, align 8, !tbaa !49
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.jpeg_component_info, ptr %193, i32 0, i32 4
  %195 = load i32, ptr %194, align 8, !tbaa !49
  store i32 %195, ptr %10, align 4, !tbaa !37
  %196 = load i32, ptr %10, align 4, !tbaa !37
  %197 = icmp slt i32 %196, 0
  br i1 %197, label %209, label %198

198:                                              ; preds = %172
  %199 = load i32, ptr %10, align 4, !tbaa !37
  %200 = icmp sge i32 %199, 4
  br i1 %200, label %209, label %201

201:                                              ; preds = %198
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %202, i32 0, i32 40
  %204 = load i32, ptr %10, align 4, !tbaa !37
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [4 x ptr], ptr %203, i64 0, i64 %205
  %207 = load ptr, ptr %206, align 8, !tbaa !5
  %208 = icmp eq ptr %207, null
  br i1 %208, label %209, label %226

209:                                              ; preds = %201, %198, %172
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %210, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8, !tbaa !14
  %213 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %212, i32 0, i32 5
  store i32 52, ptr %213, align 8, !tbaa !15
  %214 = load i32, ptr %10, align 4, !tbaa !37
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %215, i32 0, i32 0
  %217 = load ptr, ptr %216, align 8, !tbaa !14
  %218 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %217, i32 0, i32 6
  %219 = getelementptr inbounds [8 x i32], ptr %218, i64 0, i64 0
  store i32 %214, ptr %219, align 4, !tbaa !18
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !14
  %223 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !19
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  call void %224(ptr noundef %225)
  br label %226

226:                                              ; preds = %209, %201
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %227, i32 0, i32 40
  %229 = load i32, ptr %10, align 4, !tbaa !37
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [4 x ptr], ptr %228, i64 0, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  store ptr %232, ptr %9, align 8, !tbaa !5
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.jpeg_component_info, ptr %233, i32 0, i32 19
  %235 = load ptr, ptr %234, align 8, !tbaa !50
  store ptr %235, ptr %8, align 8, !tbaa !5
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %280

238:                                              ; preds = %226
  store i32 0, ptr %12, align 4, !tbaa !37
  br label %239

239:                                              ; preds = %276, %238
  %240 = load i32, ptr %12, align 4, !tbaa !37
  %241 = icmp slt i32 %240, 64
  br i1 %241, label %242, label %279

242:                                              ; preds = %239
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.JQUANT_TBL, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %12, align 4, !tbaa !37
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [64 x i16], ptr %244, i64 0, i64 %246
  %248 = load i16, ptr %247, align 2, !tbaa !51
  %249 = zext i16 %248 to i32
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.JQUANT_TBL, ptr %250, i32 0, i32 0
  %252 = load i32, ptr %12, align 4, !tbaa !37
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [64 x i16], ptr %251, i64 0, i64 %253
  %255 = load i16, ptr %254, align 2, !tbaa !51
  %256 = zext i16 %255 to i32
  %257 = icmp ne i32 %249, %256
  br i1 %257, label %258, label %275

258:                                              ; preds = %242
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %259, i32 0, i32 0
  %261 = load ptr, ptr %260, align 8, !tbaa !14
  %262 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %261, i32 0, i32 5
  store i32 44, ptr %262, align 8, !tbaa !15
  %263 = load i32, ptr %10, align 4, !tbaa !37
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %264, i32 0, i32 0
  %266 = load ptr, ptr %265, align 8, !tbaa !14
  %267 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %266, i32 0, i32 6
  %268 = getelementptr inbounds [8 x i32], ptr %267, i64 0, i64 0
  store i32 %263, ptr %268, align 4, !tbaa !18
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !14
  %272 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %271, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8, !tbaa !19
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  call void %273(ptr noundef %274)
  br label %275

275:                                              ; preds = %258, %242
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %12, align 4, !tbaa !37
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %12, align 4, !tbaa !37
  br label %239, !llvm.loop !52

279:                                              ; preds = %239
  br label %280

280:                                              ; preds = %279, %226
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %11, align 4, !tbaa !37
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %11, align 4, !tbaa !37
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.jpeg_component_info, ptr %284, i32 1
  store ptr %285, ptr %6, align 8, !tbaa !5
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.jpeg_component_info, ptr %286, i32 1
  store ptr %287, ptr %7, align 8, !tbaa !5
  br label %166, !llvm.loop !53

288:                                              ; preds = %166
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %289, i32 0, i32 51
  %291 = load i32, ptr %290, align 4, !tbaa !54
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %326

293:                                              ; preds = %288
  %294 = load ptr, ptr %3, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %294, i32 0, i32 52
  %296 = load i8, ptr %295, align 8, !tbaa !55
  %297 = zext i8 %296 to i32
  %298 = icmp eq i32 %297, 1
  br i1 %298, label %299, label %310

299:                                              ; preds = %293
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %300, i32 0, i32 52
  %302 = load i8, ptr %301, align 8, !tbaa !55
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %303, i32 0, i32 33
  store i8 %302, ptr %304, align 4, !tbaa !56
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %305, i32 0, i32 53
  %307 = load i8, ptr %306, align 1, !tbaa !57
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %308, i32 0, i32 34
  store i8 %307, ptr %309, align 1, !tbaa !58
  br label %310

310:                                              ; preds = %299, %293
  %311 = load ptr, ptr %3, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %311, i32 0, i32 54
  %313 = load i8, ptr %312, align 2, !tbaa !59
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %314, i32 0, i32 35
  store i8 %313, ptr %315, align 2, !tbaa !60
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %316, i32 0, i32 55
  %318 = load i16, ptr %317, align 4, !tbaa !61
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %319, i32 0, i32 36
  store i16 %318, ptr %320, align 8, !tbaa !62
  %321 = load ptr, ptr %3, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %321, i32 0, i32 56
  %323 = load i16, ptr %322, align 2, !tbaa !63
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %324, i32 0, i32 37
  store i16 %323, ptr %325, align 2, !tbaa !64
  br label %326

326:                                              ; preds = %310, %288
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

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

declare void @jpeg_set_defaults(ptr noundef) #2

declare void @jpeg_set_colorspace(ptr noundef, i32 noundef) #2

declare ptr @jpeg_alloc_quant_table(ptr noundef) #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 36}
!10 = !{!"jpeg_compress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !6, i64 88, !7, i64 96, !7, i64 128, !7, i64 160, !7, i64 192, !7, i64 208, !7, i64 224, !11, i64 240, !6, i64 248, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !7, i64 292, !7, i64 293, !7, i64 294, !13, i64 296, !13, i64 298, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !11, i64 316, !11, i64 320, !11, i64 324, !7, i64 328, !11, i64 360, !11, i64 364, !11, i64 368, !7, i64 372, !11, i64 412, !11, i64 416, !11, i64 420, !11, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !11, i64 512}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !6, i64 0}
!15 = !{!16, !11, i64 40}
!16 = !{!"jpeg_error_mgr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !7, i64 44, !11, i64 124, !17, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 164}
!17 = !{!"long", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!16, !6, i64 0}
!20 = !{!21, !11, i64 48}
!21 = !{!"jpeg_decompress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !12, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !6, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !6, i64 192, !7, i64 200, !7, i64 232, !7, i64 264, !11, i64 296, !6, i64 304, !11, i64 312, !11, i64 316, !7, i64 320, !7, i64 336, !7, i64 352, !11, i64 368, !11, i64 372, !7, i64 376, !7, i64 377, !7, i64 378, !13, i64 380, !13, i64 382, !11, i64 384, !7, i64 388, !11, i64 392, !6, i64 400, !11, i64 408, !11, i64 412, !11, i64 416, !11, i64 420, !6, i64 424, !11, i64 432, !7, i64 440, !11, i64 472, !11, i64 476, !11, i64 480, !7, i64 484, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624}
!22 = !{!10, !11, i64 48}
!23 = !{!21, !11, i64 52}
!24 = !{!10, !11, i64 52}
!25 = !{!21, !11, i64 56}
!26 = !{!10, !11, i64 56}
!27 = !{!21, !11, i64 60}
!28 = !{!10, !11, i64 60}
!29 = !{!10, !6, i64 432}
!30 = !{!31, !11, i64 36}
!31 = !{!"jpeg_comp_master", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !7, i64 72, !7, i64 2120, !11, i64 4168, !11, i64 4172, !11, i64 4176, !11, i64 4180, !11, i64 4184, !11, i64 4188, !11, i64 4192, !11, i64 4196, !11, i64 4200, !11, i64 4204, !11, i64 4208, !32, i64 4212, !32, i64 4216, !32, i64 4220}
!32 = !{!"float", !7, i64 0}
!33 = !{!21, !11, i64 296}
!34 = !{!10, !11, i64 72}
!35 = !{!21, !11, i64 392}
!36 = !{!10, !11, i64 268}
!37 = !{!11, !11, i64 0}
!38 = !{!39, !11, i64 128}
!39 = !{!"", !7, i64 0, !11, i64 128}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!10, !11, i64 76}
!43 = !{!21, !6, i64 304}
!44 = !{!10, !6, i64 88}
!45 = !{!46, !11, i64 0}
!46 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !6, i64 80, !6, i64 88}
!47 = !{!46, !11, i64 8}
!48 = !{!46, !11, i64 12}
!49 = !{!46, !11, i64 16}
!50 = !{!46, !6, i64 80}
!51 = !{!13, !13, i64 0}
!52 = distinct !{!52, !41}
!53 = distinct !{!53, !41}
!54 = !{!21, !11, i64 372}
!55 = !{!21, !7, i64 376}
!56 = !{!10, !7, i64 292}
!57 = !{!21, !7, i64 377}
!58 = !{!10, !7, i64 293}
!59 = !{!21, !7, i64 378}
!60 = !{!10, !7, i64 294}
!61 = !{!21, !13, i64 380}
!62 = !{!10, !13, i64 296}
!63 = !{!21, !13, i64 382}
!64 = !{!10, !13, i64 298}


; 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: nounwind uwtable
define dso_local void @jpeg_copy_critical_parameters(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 36
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %.not = icmp eq i32 %4, 100
  br i1 %.not, label %11, label %5

5:                                                ; preds = %2
  %6 = load ptr, ptr %1, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 20, ptr %7, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %6, i64 44
  store i32 %4, ptr %8, align 4, !tbaa !17
  %9 = load ptr, ptr %1, align 8, !tbaa !13
  %10 = load ptr, ptr %9, align 8, !tbaa !18
  tail call void %10(ptr noundef nonnull %1) #3
  br label %11

11:                                               ; preds = %5, %2
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = getelementptr inbounds i8, ptr %1, i64 48
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  %15 = getelementptr inbounds i8, ptr %0, i64 60
  %16 = load <4 x i32>, ptr %12, align 8, !tbaa !19
  store <4 x i32> %16, ptr %13, align 8, !tbaa !19
  tail call void @jpeg_set_defaults(ptr noundef nonnull %1) #3
  %17 = getelementptr inbounds i8, ptr %1, i64 432
  %18 = load ptr, ptr %17, align 8, !tbaa !20
  %19 = getelementptr inbounds i8, ptr %18, i64 36
  store i32 0, ptr %19, align 4, !tbaa !21
  %20 = load i32, ptr %15, align 4, !tbaa !24
  tail call void @jpeg_set_colorspace(ptr noundef nonnull %1, i32 noundef %20) #3
  %21 = getelementptr inbounds i8, ptr %0, i64 296
  %22 = load i32, ptr %21, align 8, !tbaa !26
  %23 = getelementptr inbounds i8, ptr %1, i64 72
  store i32 %22, ptr %23, align 8, !tbaa !27
  %24 = getelementptr inbounds i8, ptr %0, i64 392
  %25 = load i32, ptr %24, align 8, !tbaa !28
  %26 = getelementptr inbounds i8, ptr %1, i64 268
  store i32 %25, ptr %26, align 4, !tbaa !29
  %27 = getelementptr inbounds i8, ptr %0, i64 200
  %28 = getelementptr inbounds i8, ptr %1, i64 96
  %29 = load ptr, ptr %27, align 8, !tbaa !30
  %.not107 = icmp eq ptr %29, null
  br i1 %.not107, label %40, label %30

30:                                               ; preds = %11
  %31 = load ptr, ptr %28, align 8, !tbaa !30
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %34, ptr %28, align 8, !tbaa !30
  %.pre = load ptr, ptr %27, align 8, !tbaa !30
  br label %35

35:                                               ; preds = %33, %30
  %36 = phi ptr [ %.pre, %33 ], [ %29, %30 ]
  %37 = phi ptr [ %34, %33 ], [ %31, %30 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(128) %37, ptr noundef nonnull align 4 dereferenceable(128) %36, i64 128, i1 false)
  %38 = load ptr, ptr %28, align 8, !tbaa !30
  %39 = getelementptr inbounds i8, ptr %38, i64 128
  store i32 0, ptr %39, align 4, !tbaa !31
  br label %40

40:                                               ; preds = %11, %35
  %41 = getelementptr inbounds i8, ptr %0, i64 208
  %42 = load ptr, ptr %41, align 8, !tbaa !30
  %.not107.1 = icmp eq ptr %42, null
  br i1 %.not107.1, label %54, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %1, i64 104
  %45 = load ptr, ptr %44, align 8, !tbaa !30
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %49

47:                                               ; preds = %43
  %48 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %48, ptr %44, align 8, !tbaa !30
  %.pre116 = load ptr, ptr %41, align 8, !tbaa !30
  br label %49

49:                                               ; preds = %47, %43
  %50 = phi ptr [ %.pre116, %47 ], [ %42, %43 ]
  %51 = phi ptr [ %48, %47 ], [ %45, %43 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(128) %51, ptr noundef nonnull align 4 dereferenceable(128) %50, i64 128, i1 false)
  %52 = load ptr, ptr %44, align 8, !tbaa !30
  %53 = getelementptr inbounds i8, ptr %52, i64 128
  store i32 0, ptr %53, align 4, !tbaa !31
  br label %54

54:                                               ; preds = %49, %40
  %55 = getelementptr inbounds i8, ptr %0, i64 216
  %56 = load ptr, ptr %55, align 8, !tbaa !30
  %.not107.2 = icmp eq ptr %56, null
  br i1 %.not107.2, label %68, label %57

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %1, i64 112
  %59 = load ptr, ptr %58, align 8, !tbaa !30
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %62, ptr %58, align 8, !tbaa !30
  %.pre117 = load ptr, ptr %55, align 8, !tbaa !30
  br label %63

63:                                               ; preds = %61, %57
  %64 = phi ptr [ %.pre117, %61 ], [ %56, %57 ]
  %65 = phi ptr [ %62, %61 ], [ %59, %57 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(128) %65, ptr noundef nonnull align 4 dereferenceable(128) %64, i64 128, i1 false)
  %66 = load ptr, ptr %58, align 8, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %66, i64 128
  store i32 0, ptr %67, align 4, !tbaa !31
  br label %68

68:                                               ; preds = %63, %54
  %69 = getelementptr inbounds i8, ptr %0, i64 224
  %70 = load ptr, ptr %69, align 8, !tbaa !30
  %.not107.3 = icmp eq ptr %70, null
  br i1 %.not107.3, label %82, label %71

71:                                               ; preds = %68
  %72 = getelementptr inbounds i8, ptr %1, i64 120
  %73 = load ptr, ptr %72, align 8, !tbaa !30
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  %76 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %76, ptr %72, align 8, !tbaa !30
  %.pre118 = load ptr, ptr %69, align 8, !tbaa !30
  br label %77

77:                                               ; preds = %75, %71
  %78 = phi ptr [ %.pre118, %75 ], [ %70, %71 ]
  %79 = phi ptr [ %76, %75 ], [ %73, %71 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(128) %79, ptr noundef nonnull align 4 dereferenceable(128) %78, i64 128, i1 false)
  %80 = load ptr, ptr %72, align 8, !tbaa !30
  %81 = getelementptr inbounds i8, ptr %80, i64 128
  store i32 0, ptr %81, align 4, !tbaa !31
  br label %82

82:                                               ; preds = %77, %68
  %83 = load i32, ptr %14, align 8, !tbaa !33
  %84 = getelementptr inbounds i8, ptr %1, i64 76
  store i32 %83, ptr %84, align 4, !tbaa !34
  %85 = add i32 %83, -11
  %or.cond108 = icmp ult i32 %85, -10
  br i1 %or.cond108, label %86, label %.lr.ph

86:                                               ; preds = %82
  %87 = load ptr, ptr %1, align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %87, i64 40
  store i32 26, ptr %88, align 8, !tbaa !14
  %89 = getelementptr inbounds i8, ptr %87, i64 44
  store i32 %83, ptr %89, align 4, !tbaa !17
  %90 = load ptr, ptr %1, align 8, !tbaa !13
  %91 = getelementptr inbounds i8, ptr %90, i64 48
  store i32 10, ptr %91, align 4, !tbaa !17
  %92 = load ptr, ptr %1, align 8, !tbaa !13
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  tail call void %93(ptr noundef nonnull %1) #3
  %.pre119 = load i32, ptr %84, align 4, !tbaa !34
  %94 = icmp sgt i32 %.pre119, 0
  br i1 %94, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %82, %86
  %95 = getelementptr inbounds i8, ptr %1, i64 88
  %96 = load ptr, ptr %95, align 8, !tbaa !35
  %97 = getelementptr inbounds i8, ptr %0, i64 304
  %98 = load ptr, ptr %97, align 8, !tbaa !36
  br label %99

99:                                               ; preds = %.lr.ph, %.loopexit
  %.097113 = phi i32 [ 0, %.lr.ph ], [ %132, %.loopexit ]
  %.099112 = phi ptr [ %98, %.lr.ph ], [ %133, %.loopexit ]
  %.0100111 = phi ptr [ %96, %.lr.ph ], [ %134, %.loopexit ]
  %100 = load i32, ptr %.099112, align 8, !tbaa !37
  store i32 %100, ptr %.0100111, align 8, !tbaa !37
  %101 = getelementptr inbounds i8, ptr %.099112, i64 8
  %102 = getelementptr inbounds i8, ptr %.0100111, i64 8
  %103 = load <2 x i32>, ptr %101, align 8, !tbaa !19
  store <2 x i32> %103, ptr %102, align 8, !tbaa !19
  %104 = getelementptr inbounds i8, ptr %.099112, i64 16
  %105 = load i32, ptr %104, align 8, !tbaa !39
  %106 = getelementptr inbounds i8, ptr %.0100111, i64 16
  store i32 %105, ptr %106, align 8, !tbaa !39
  %or.cond = icmp ugt i32 %105, 3
  br i1 %or.cond, label %112, label %107

107:                                              ; preds = %99
  %108 = zext nneg i32 %105 to i64
  %109 = getelementptr inbounds [4 x ptr], ptr %27, i64 0, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !30
  %111 = icmp eq ptr %110, null
  br i1 %111, label %112, label %._crit_edge122

112:                                              ; preds = %107, %99
  %113 = load ptr, ptr %1, align 8, !tbaa !13
  %114 = getelementptr inbounds i8, ptr %113, i64 40
  store i32 52, ptr %114, align 8, !tbaa !14
  %115 = getelementptr inbounds i8, ptr %113, i64 44
  store i32 %105, ptr %115, align 4, !tbaa !17
  %116 = load ptr, ptr %1, align 8, !tbaa !13
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  tail call void %117(ptr noundef nonnull %1) #3
  %.phi.trans.insert = sext i32 %105 to i64
  %.phi.trans.insert120 = getelementptr inbounds [4 x ptr], ptr %27, i64 0, i64 %.phi.trans.insert
  %.pre121 = load ptr, ptr %.phi.trans.insert120, align 8, !tbaa !30
  br label %._crit_edge122

._crit_edge122:                                   ; preds = %107, %112
  %118 = phi ptr [ %.pre121, %112 ], [ %110, %107 ]
  %119 = getelementptr inbounds i8, ptr %.099112, i64 80
  %120 = load ptr, ptr %119, align 8, !tbaa !40
  %.not105 = icmp eq ptr %120, null
  br i1 %.not105, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge122, %131
  %indvars.iv = phi i64 [ %indvars.iv.next, %131 ], [ 0, %._crit_edge122 ]
  %121 = getelementptr inbounds [64 x i16], ptr %120, i64 0, i64 %indvars.iv
  %122 = load i16, ptr %121, align 2, !tbaa !41
  %123 = getelementptr inbounds [64 x i16], ptr %118, i64 0, i64 %indvars.iv
  %124 = load i16, ptr %123, align 2, !tbaa !41
  %.not106 = icmp eq i16 %122, %124
  br i1 %.not106, label %131, label %125

125:                                              ; preds = %.preheader
  %126 = load ptr, ptr %1, align 8, !tbaa !13
  %127 = getelementptr inbounds i8, ptr %126, i64 40
  store i32 44, ptr %127, align 8, !tbaa !14
  %128 = getelementptr inbounds i8, ptr %126, i64 44
  store i32 %105, ptr %128, align 4, !tbaa !17
  %129 = load ptr, ptr %1, align 8, !tbaa !13
  %130 = load ptr, ptr %129, align 8, !tbaa !18
  tail call void %130(ptr noundef nonnull %1) #3
  br label %131

131:                                              ; preds = %.preheader, %125
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 64
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !42

.loopexit:                                        ; preds = %131, %._crit_edge122
  %132 = add nuw nsw i32 %.097113, 1
  %133 = getelementptr inbounds i8, ptr %.099112, i64 96
  %134 = getelementptr inbounds i8, ptr %.0100111, i64 96
  %135 = load i32, ptr %84, align 4, !tbaa !34
  %136 = icmp slt i32 %132, %135
  br i1 %136, label %99, label %._crit_edge, !llvm.loop !44

._crit_edge:                                      ; preds = %.loopexit, %86
  %137 = getelementptr inbounds i8, ptr %0, i64 372
  %138 = load i32, ptr %137, align 4, !tbaa !45
  %.not104 = icmp eq i32 %138, 0
  br i1 %.not104, label %155, label %139

139:                                              ; preds = %._crit_edge
  %140 = getelementptr inbounds i8, ptr %0, i64 376
  %141 = load i8, ptr %140, align 8, !tbaa !46
  %142 = icmp eq i8 %141, 1
  br i1 %142, label %143, label %148

143:                                              ; preds = %139
  %144 = getelementptr inbounds i8, ptr %1, i64 292
  store i8 1, ptr %144, align 4, !tbaa !47
  %145 = getelementptr inbounds i8, ptr %0, i64 377
  %146 = load i8, ptr %145, align 1, !tbaa !48
  %147 = getelementptr inbounds i8, ptr %1, i64 293
  store i8 %146, ptr %147, align 1, !tbaa !49
  br label %148

148:                                              ; preds = %143, %139
  %149 = getelementptr inbounds i8, ptr %0, i64 378
  %150 = load i8, ptr %149, align 2, !tbaa !50
  %151 = getelementptr inbounds i8, ptr %1, i64 294
  store i8 %150, ptr %151, align 2, !tbaa !51
  %152 = getelementptr inbounds i8, ptr %0, i64 380
  %153 = getelementptr inbounds i8, ptr %1, i64 296
  %154 = load <2 x i16>, ptr %152, align 4, !tbaa !41
  store <2 x i16> %154, ptr %153, align 8, !tbaa !41
  br label %155

155:                                              ; preds = %148, %._crit_edge
  ret void
}

declare void @jpeg_set_defaults(ptr noundef) local_unnamed_addr #1

declare void @jpeg_set_colorspace(ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @jpeg_alloc_quant_table(ptr noundef) local_unnamed_addr #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 36}
!6 = !{!"jpeg_compress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !11, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 88, !8, i64 96, !8, i64 128, !8, i64 160, !8, i64 192, !8, i64 208, !8, i64 224, !10, i64 240, !7, i64 248, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !8, i64 292, !8, i64 293, !8, i64 294, !12, i64 296, !12, i64 298, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !8, i64 328, !10, i64 360, !10, i64 364, !10, i64 368, !8, i64 372, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !10, i64 512}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !10, i64 40}
!15 = !{!"jpeg_error_mgr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !8, i64 44, !10, i64 124, !16, i64 128, !7, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 164}
!16 = !{!"long", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!15, !7, i64 0}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !7, i64 432}
!21 = !{!22, !10, i64 36}
!22 = !{!"jpeg_comp_master", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !8, i64 72, !8, i64 2120, !10, i64 4168, !10, i64 4172, !10, i64 4176, !10, i64 4180, !10, i64 4184, !10, i64 4188, !10, i64 4192, !10, i64 4196, !10, i64 4200, !10, i64 4204, !10, i64 4208, !23, i64 4212, !23, i64 4216, !23, i64 4220}
!23 = !{!"float", !8, i64 0}
!24 = !{!25, !10, i64 60}
!25 = !{!"jpeg_decompress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !11, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !7, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !7, i64 192, !8, i64 200, !8, i64 232, !8, i64 264, !10, i64 296, !7, i64 304, !10, i64 312, !10, i64 316, !8, i64 320, !8, i64 336, !8, i64 352, !10, i64 368, !10, i64 372, !8, i64 376, !8, i64 377, !8, i64 378, !12, i64 380, !12, i64 382, !10, i64 384, !8, i64 388, !10, i64 392, !7, i64 400, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !7, i64 424, !10, i64 432, !8, i64 440, !10, i64 472, !10, i64 476, !10, i64 480, !8, i64 484, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !7, i64 624}
!26 = !{!25, !10, i64 296}
!27 = !{!6, !10, i64 72}
!28 = !{!25, !10, i64 392}
!29 = !{!6, !10, i64 268}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !10, i64 128}
!32 = !{!"", !8, i64 0, !10, i64 128}
!33 = !{!25, !10, i64 56}
!34 = !{!6, !10, i64 76}
!35 = !{!6, !7, i64 88}
!36 = !{!25, !7, i64 304}
!37 = !{!38, !10, i64 0}
!38 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !7, i64 80, !7, i64 88}
!39 = !{!38, !10, i64 16}
!40 = !{!38, !7, i64 80}
!41 = !{!12, !12, i64 0}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = !{!25, !10, i64 372}
!46 = !{!25, !8, i64 376}
!47 = !{!6, !8, i64 292}
!48 = !{!25, !8, i64 377}
!49 = !{!6, !8, i64 293}
!50 = !{!25, !8, i64 378}
!51 = !{!6, !8, i64 294}


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