; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_graphics/image_formats/jpglib (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, i8, 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, i8, i8, i8, i8, i32, i32, i32, i32, i8, i8, i8, i8, i16, i16, i8, i32, i8, 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, i8, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, i8, i8, i32, i8, i8, i8, i32, i8, i32, i8, i8, i8, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], i32, ptr, i8, i8, [16 x i8], [16 x i8], [16 x i8], i32, i8, i8, i8, i8, i16, i16, i8, i8, i8, 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.JQUANT_TBL = type { [64 x i16], i8 }
%struct.jpeg_component_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, 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 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %59, i32 0, i32 10
  %61 = load i32, ptr %60, align 4, !tbaa !27
  call void @jpeg_set_colorspace(ptr noundef %58, i32 noundef %61)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %62, i32 0, i32 43
  %64 = load i32, ptr %63, align 8, !tbaa !29
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %65, i32 0, i32 12
  store i32 %64, ptr %66, align 8, !tbaa !30
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %67, i32 0, i32 59
  %69 = load i8, ptr %68, align 2, !tbaa !31
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %70, i32 0, i32 27
  store i8 %69, ptr %71, align 1, !tbaa !32
  store i32 0, ptr %10, align 4, !tbaa !33
  br label %72

72:                                               ; preds = %113, %36
  %73 = load i32, ptr %10, align 4, !tbaa !33
  %74 = icmp slt i32 %73, 4
  br i1 %74, label %75, label %116

75:                                               ; preds = %72
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %76, i32 0, i32 40
  %78 = load i32, ptr %10, align 4, !tbaa !33
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4 x ptr], ptr %77, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %112

83:                                               ; preds = %75
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %84, i32 0, i32 16
  %86 = load i32, ptr %10, align 4, !tbaa !33
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [4 x ptr], ptr %85, i64 0, i64 %87
  store ptr %88, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = icmp eq ptr %90, null
  br i1 %91, label %92, label %96

92:                                               ; preds = %83
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = call ptr @jpeg_alloc_quant_table(ptr noundef %93)
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %94, ptr %95, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %92, %83
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.JQUANT_TBL, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds [64 x i16], ptr %99, i64 0, i64 0
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %101, i32 0, i32 40
  %103 = load i32, ptr %10, align 4, !tbaa !33
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [4 x ptr], ptr %102, i64 0, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.JQUANT_TBL, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds [64 x i16], ptr %107, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %100, ptr align 2 %108, i64 128, i1 false)
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.JQUANT_TBL, ptr %110, i32 0, i32 1
  store i8 0, ptr %111, align 2, !tbaa !34
  br label %112

112:                                              ; preds = %96, %75
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %10, align 4, !tbaa !33
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %10, align 4, !tbaa !33
  br label %72, !llvm.loop !36

116:                                              ; preds = %72
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %117, i32 0, i32 9
  %119 = load i32, ptr %118, align 8, !tbaa !25
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %120, i32 0, i32 13
  store i32 %119, ptr %121, align 4, !tbaa !38
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %122, i32 0, i32 13
  %124 = load i32, ptr %123, align 4, !tbaa !38
  %125 = icmp slt i32 %124, 1
  br i1 %125, label %131, label %126

126:                                              ; preds = %116
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %127, i32 0, i32 13
  %129 = load i32, ptr %128, align 4, !tbaa !38
  %130 = icmp sgt i32 %129, 10
  br i1 %130, label %131, label %155

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

155:                                              ; preds = %131, %126
  store i32 0, ptr %11, align 4, !tbaa !33
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %156, i32 0, i32 44
  %158 = load ptr, ptr %157, align 8, !tbaa !39
  store ptr %158, ptr %6, align 8, !tbaa !5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %159, i32 0, i32 15
  %161 = load ptr, ptr %160, align 8, !tbaa !40
  store ptr %161, ptr %7, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %277, %155
  %163 = load i32, ptr %11, align 4, !tbaa !33
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %164, i32 0, i32 13
  %166 = load i32, ptr %165, align 4, !tbaa !38
  %167 = icmp slt i32 %163, %166
  br i1 %167, label %168, label %284

168:                                              ; preds = %162
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.jpeg_component_info, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 8, !tbaa !41
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.jpeg_component_info, ptr %172, i32 0, i32 0
  store i32 %171, ptr %173, align 8, !tbaa !41
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.jpeg_component_info, ptr %174, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !43
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.jpeg_component_info, ptr %177, i32 0, i32 2
  store i32 %176, ptr %178, align 8, !tbaa !43
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.jpeg_component_info, ptr %179, i32 0, i32 3
  %181 = load i32, ptr %180, align 4, !tbaa !44
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.jpeg_component_info, ptr %182, i32 0, i32 3
  store i32 %181, ptr %183, align 4, !tbaa !44
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.jpeg_component_info, ptr %184, i32 0, i32 4
  %186 = load i32, ptr %185, align 8, !tbaa !45
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.jpeg_component_info, ptr %187, i32 0, i32 4
  store i32 %186, ptr %188, align 8, !tbaa !45
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.jpeg_component_info, ptr %189, i32 0, i32 4
  %191 = load i32, ptr %190, align 8, !tbaa !45
  store i32 %191, ptr %10, align 4, !tbaa !33
  %192 = load i32, ptr %10, align 4, !tbaa !33
  %193 = icmp slt i32 %192, 0
  br i1 %193, label %205, label %194

194:                                              ; preds = %168
  %195 = load i32, ptr %10, align 4, !tbaa !33
  %196 = icmp sge i32 %195, 4
  br i1 %196, label %205, label %197

197:                                              ; preds = %194
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %198, i32 0, i32 40
  %200 = load i32, ptr %10, align 4, !tbaa !33
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [4 x ptr], ptr %199, i64 0, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = icmp eq ptr %203, null
  br i1 %204, label %205, label %222

205:                                              ; preds = %197, %194, %168
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !14
  %209 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %208, i32 0, i32 5
  store i32 52, ptr %209, align 8, !tbaa !15
  %210 = load i32, ptr %10, align 4, !tbaa !33
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !14
  %214 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %213, i32 0, i32 6
  %215 = getelementptr inbounds [8 x i32], ptr %214, i64 0, i64 0
  store i32 %210, ptr %215, align 4, !tbaa !18
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !14
  %219 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %218, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8, !tbaa !19
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  call void %220(ptr noundef %221)
  br label %222

222:                                              ; preds = %205, %197
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %223, i32 0, i32 40
  %225 = load i32, ptr %10, align 4, !tbaa !33
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [4 x ptr], ptr %224, i64 0, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  store ptr %228, ptr %9, align 8, !tbaa !5
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.jpeg_component_info, ptr %229, i32 0, i32 19
  %231 = load ptr, ptr %230, align 8, !tbaa !46
  store ptr %231, ptr %8, align 8, !tbaa !5
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = icmp ne ptr %232, null
  br i1 %233, label %234, label %276

234:                                              ; preds = %222
  store i32 0, ptr %12, align 4, !tbaa !33
  br label %235

235:                                              ; preds = %272, %234
  %236 = load i32, ptr %12, align 4, !tbaa !33
  %237 = icmp slt i32 %236, 64
  br i1 %237, label %238, label %275

238:                                              ; preds = %235
  %239 = load ptr, ptr %8, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.JQUANT_TBL, ptr %239, i32 0, i32 0
  %241 = load i32, ptr %12, align 4, !tbaa !33
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [64 x i16], ptr %240, i64 0, i64 %242
  %244 = load i16, ptr %243, align 2, !tbaa !47
  %245 = zext i16 %244 to i32
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.JQUANT_TBL, ptr %246, i32 0, i32 0
  %248 = load i32, ptr %12, align 4, !tbaa !33
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [64 x i16], ptr %247, i64 0, i64 %249
  %251 = load i16, ptr %250, align 2, !tbaa !47
  %252 = zext i16 %251 to i32
  %253 = icmp ne i32 %245, %252
  br i1 %253, label %254, label %271

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

271:                                              ; preds = %254, %238
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %12, align 4, !tbaa !33
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %12, align 4, !tbaa !33
  br label %235, !llvm.loop !48

275:                                              ; preds = %235
  br label %276

276:                                              ; preds = %275, %222
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %11, align 4, !tbaa !33
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %11, align 4, !tbaa !33
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.jpeg_component_info, ptr %280, i32 1
  store ptr %281, ptr %6, align 8, !tbaa !5
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.jpeg_component_info, ptr %282, i32 1
  store ptr %283, ptr %7, align 8, !tbaa !5
  br label %162, !llvm.loop !49

284:                                              ; preds = %162
  %285 = load ptr, ptr %3, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %285, i32 0, i32 51
  %287 = load i8, ptr %286, align 8, !tbaa !50
  %288 = icmp ne i8 %287, 0
  br i1 %288, label %289, label %322

289:                                              ; preds = %284
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %290, i32 0, i32 52
  %292 = load i8, ptr %291, align 1, !tbaa !51
  %293 = zext i8 %292 to i32
  %294 = icmp eq i32 %293, 1
  br i1 %294, label %295, label %306

295:                                              ; preds = %289
  %296 = load ptr, ptr %3, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %296, i32 0, i32 52
  %298 = load i8, ptr %297, align 1, !tbaa !51
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %299, i32 0, i32 33
  store i8 %298, ptr %300, align 1, !tbaa !52
  %301 = load ptr, ptr %3, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %301, i32 0, i32 53
  %303 = load i8, ptr %302, align 2, !tbaa !53
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %304, i32 0, i32 34
  store i8 %303, ptr %305, align 2, !tbaa !54
  br label %306

306:                                              ; preds = %295, %289
  %307 = load ptr, ptr %3, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %307, i32 0, i32 54
  %309 = load i8, ptr %308, align 1, !tbaa !55
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %310, i32 0, i32 35
  store i8 %309, ptr %311, align 1, !tbaa !56
  %312 = load ptr, ptr %3, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %312, i32 0, i32 55
  %314 = load i16, ptr %313, align 4, !tbaa !57
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %315, i32 0, i32 36
  store i16 %314, ptr %316, align 8, !tbaa !58
  %317 = load ptr, ptr %3, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %317, i32 0, i32 56
  %319 = load i16, ptr %318, align 2, !tbaa !59
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %320, i32 0, i32 37
  store i16 %319, ptr %321, align 2, !tbaa !60
  br label %322

322:                                              ; preds = %306, %284
  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, !7, 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, !7, i64 256, !7, i64 257, !7, i64 258, !7, i64 259, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !7, i64 276, !7, i64 277, !7, i64 278, !7, i64 279, !13, i64 280, !13, i64 282, !7, i64 284, !11, i64 288, !7, i64 292, !11, i64 296, !11, i64 300, !11, i64 304, !11, i64 308, !7, i64 312, !11, i64 344, !11, i64 348, !11, i64 352, !7, i64 356, !11, i64 396, !11, i64 400, !11, i64 404, !11, i64 408, !6, i64 416, !6, 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, !11, i64 496}
!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, !7, 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, !7, i64 88, !7, i64 89, !11, i64 92, !7, i64 96, !7, i64 97, !7, i64 98, !11, i64 100, !7, i64 104, !11, i64 108, !7, i64 112, !7, i64 113, !7, i64 114, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !6, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !6, i64 176, !7, i64 184, !7, i64 216, !7, i64 248, !11, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !7, i64 298, !7, i64 314, !7, i64 330, !11, i64 348, !7, i64 352, !7, i64 353, !7, i64 354, !7, i64 355, !13, i64 356, !13, i64 358, !7, i64 360, !7, i64 361, !7, i64 362, !6, i64 368, !11, i64 376, !11, i64 380, !11, i64 384, !11, i64 388, !6, i64 392, !11, i64 400, !7, i64 408, !11, i64 440, !11, i64 444, !11, i64 448, !7, i64 452, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592}
!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 = !{!21, !11, i64 280}
!30 = !{!10, !11, i64 72}
!31 = !{!21, !7, i64 362}
!32 = !{!10, !7, i64 259}
!33 = !{!11, !11, i64 0}
!34 = !{!35, !7, i64 128}
!35 = !{!"", !7, i64 0, !7, i64 128}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!10, !11, i64 76}
!39 = !{!21, !6, i64 288}
!40 = !{!10, !6, i64 88}
!41 = !{!42, !11, i64 0}
!42 = !{!"", !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, !7, 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}
!43 = !{!42, !11, i64 8}
!44 = !{!42, !11, i64 12}
!45 = !{!42, !11, i64 16}
!46 = !{!42, !6, i64 80}
!47 = !{!13, !13, i64 0}
!48 = distinct !{!48, !37}
!49 = distinct !{!49, !37}
!50 = !{!21, !7, i64 352}
!51 = !{!21, !7, i64 353}
!52 = !{!10, !7, i64 277}
!53 = !{!21, !7, i64 354}
!54 = !{!10, !7, i64 278}
!55 = !{!21, !7, i64 355}
!56 = !{!10, !7, i64 279}
!57 = !{!21, !13, i64 356}
!58 = !{!10, !13, i64 280}
!59 = !{!21, !13, i64 358}
!60 = !{!10, !13, i64 282}


; 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 = load i32, ptr %15, align 4, !tbaa !20
  tail call void @jpeg_set_colorspace(ptr noundef nonnull %1, i32 noundef %17) #3
  %18 = getelementptr inbounds i8, ptr %0, i64 280
  %19 = load i32, ptr %18, align 8, !tbaa !22
  %20 = getelementptr inbounds i8, ptr %1, i64 72
  store i32 %19, ptr %20, align 8, !tbaa !23
  %21 = getelementptr inbounds i8, ptr %0, i64 362
  %22 = load i8, ptr %21, align 2, !tbaa !24
  %23 = getelementptr inbounds i8, ptr %1, i64 259
  store i8 %22, ptr %23, align 1, !tbaa !25
  %24 = getelementptr inbounds i8, ptr %0, i64 184
  %25 = getelementptr inbounds i8, ptr %1, i64 96
  %26 = load ptr, ptr %24, align 8, !tbaa !26
  %.not106 = icmp eq ptr %26, null
  br i1 %.not106, label %37, label %27

27:                                               ; preds = %11
  %28 = load ptr, ptr %25, align 8, !tbaa !26
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %31, ptr %25, align 8, !tbaa !26
  %.pre = load ptr, ptr %24, align 8, !tbaa !26
  br label %32

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

37:                                               ; preds = %11, %32
  %38 = getelementptr inbounds i8, ptr %0, i64 192
  %39 = load ptr, ptr %38, align 8, !tbaa !26
  %.not106.1 = icmp eq ptr %39, null
  br i1 %.not106.1, label %51, label %40

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %1, i64 104
  %42 = load ptr, ptr %41, align 8, !tbaa !26
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %45, ptr %41, align 8, !tbaa !26
  %.pre115 = load ptr, ptr %38, align 8, !tbaa !26
  br label %46

46:                                               ; preds = %44, %40
  %47 = phi ptr [ %.pre115, %44 ], [ %39, %40 ]
  %48 = phi ptr [ %45, %44 ], [ %42, %40 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(128) %48, ptr noundef nonnull align 2 dereferenceable(128) %47, i64 128, i1 false)
  %49 = load ptr, ptr %41, align 8, !tbaa !26
  %50 = getelementptr inbounds i8, ptr %49, i64 128
  store i8 0, ptr %50, align 2, !tbaa !27
  br label %51

51:                                               ; preds = %46, %37
  %52 = getelementptr inbounds i8, ptr %0, i64 200
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %.not106.2 = icmp eq ptr %53, null
  br i1 %.not106.2, label %65, label %54

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %1, i64 112
  %56 = load ptr, ptr %55, align 8, !tbaa !26
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %60

58:                                               ; preds = %54
  %59 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %59, ptr %55, align 8, !tbaa !26
  %.pre116 = load ptr, ptr %52, align 8, !tbaa !26
  br label %60

60:                                               ; preds = %58, %54
  %61 = phi ptr [ %.pre116, %58 ], [ %53, %54 ]
  %62 = phi ptr [ %59, %58 ], [ %56, %54 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(128) %62, ptr noundef nonnull align 2 dereferenceable(128) %61, i64 128, i1 false)
  %63 = load ptr, ptr %55, align 8, !tbaa !26
  %64 = getelementptr inbounds i8, ptr %63, i64 128
  store i8 0, ptr %64, align 2, !tbaa !27
  br label %65

65:                                               ; preds = %60, %51
  %66 = getelementptr inbounds i8, ptr %0, i64 208
  %67 = load ptr, ptr %66, align 8, !tbaa !26
  %.not106.3 = icmp eq ptr %67, null
  br i1 %.not106.3, label %79, label %68

68:                                               ; preds = %65
  %69 = getelementptr inbounds i8, ptr %1, i64 120
  %70 = load ptr, ptr %69, align 8, !tbaa !26
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = tail call ptr @jpeg_alloc_quant_table(ptr noundef nonnull %1) #3
  store ptr %73, ptr %69, align 8, !tbaa !26
  %.pre117 = load ptr, ptr %66, align 8, !tbaa !26
  br label %74

74:                                               ; preds = %72, %68
  %75 = phi ptr [ %.pre117, %72 ], [ %67, %68 ]
  %76 = phi ptr [ %73, %72 ], [ %70, %68 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(128) %76, ptr noundef nonnull align 2 dereferenceable(128) %75, i64 128, i1 false)
  %77 = load ptr, ptr %69, align 8, !tbaa !26
  %78 = getelementptr inbounds i8, ptr %77, i64 128
  store i8 0, ptr %78, align 2, !tbaa !27
  br label %79

79:                                               ; preds = %74, %65
  %80 = load i32, ptr %14, align 8, !tbaa !29
  %81 = getelementptr inbounds i8, ptr %1, i64 76
  store i32 %80, ptr %81, align 4, !tbaa !30
  %82 = add i32 %80, -11
  %or.cond107 = icmp ult i32 %82, -10
  br i1 %or.cond107, label %83, label %.lr.ph

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

.lr.ph:                                           ; preds = %79, %83
  %92 = getelementptr inbounds i8, ptr %1, i64 88
  %93 = load ptr, ptr %92, align 8, !tbaa !31
  %94 = getelementptr inbounds i8, ptr %0, i64 288
  %95 = load ptr, ptr %94, align 8, !tbaa !32
  br label %96

96:                                               ; preds = %.lr.ph, %.loopexit
  %.096112 = phi i32 [ 0, %.lr.ph ], [ %129, %.loopexit ]
  %.098111 = phi ptr [ %95, %.lr.ph ], [ %130, %.loopexit ]
  %.099110 = phi ptr [ %93, %.lr.ph ], [ %131, %.loopexit ]
  %97 = load i32, ptr %.098111, align 8, !tbaa !33
  store i32 %97, ptr %.099110, align 8, !tbaa !33
  %98 = getelementptr inbounds i8, ptr %.098111, i64 8
  %99 = getelementptr inbounds i8, ptr %.099110, i64 8
  %100 = load <2 x i32>, ptr %98, align 8, !tbaa !19
  store <2 x i32> %100, ptr %99, align 8, !tbaa !19
  %101 = getelementptr inbounds i8, ptr %.098111, i64 16
  %102 = load i32, ptr %101, align 8, !tbaa !35
  %103 = getelementptr inbounds i8, ptr %.099110, i64 16
  store i32 %102, ptr %103, align 8, !tbaa !35
  %or.cond = icmp ugt i32 %102, 3
  br i1 %or.cond, label %109, label %104

104:                                              ; preds = %96
  %105 = zext nneg i32 %102 to i64
  %106 = getelementptr inbounds [4 x ptr], ptr %24, i64 0, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !26
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %._crit_edge121

109:                                              ; preds = %104, %96
  %110 = load ptr, ptr %1, align 8, !tbaa !13
  %111 = getelementptr inbounds i8, ptr %110, i64 40
  store i32 52, ptr %111, align 8, !tbaa !14
  %112 = getelementptr inbounds i8, ptr %110, i64 44
  store i32 %102, ptr %112, align 4, !tbaa !17
  %113 = load ptr, ptr %1, align 8, !tbaa !13
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  tail call void %114(ptr noundef nonnull %1) #3
  %.phi.trans.insert = sext i32 %102 to i64
  %.phi.trans.insert119 = getelementptr inbounds [4 x ptr], ptr %24, i64 0, i64 %.phi.trans.insert
  %.pre120 = load ptr, ptr %.phi.trans.insert119, align 8, !tbaa !26
  br label %._crit_edge121

._crit_edge121:                                   ; preds = %104, %109
  %115 = phi ptr [ %.pre120, %109 ], [ %107, %104 ]
  %116 = getelementptr inbounds i8, ptr %.098111, i64 80
  %117 = load ptr, ptr %116, align 8, !tbaa !36
  %.not104 = icmp eq ptr %117, null
  br i1 %.not104, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge121, %128
  %indvars.iv = phi i64 [ %indvars.iv.next, %128 ], [ 0, %._crit_edge121 ]
  %118 = getelementptr inbounds [64 x i16], ptr %117, i64 0, i64 %indvars.iv
  %119 = load i16, ptr %118, align 2, !tbaa !37
  %120 = getelementptr inbounds [64 x i16], ptr %115, i64 0, i64 %indvars.iv
  %121 = load i16, ptr %120, align 2, !tbaa !37
  %.not105 = icmp eq i16 %119, %121
  br i1 %.not105, label %128, label %122

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

128:                                              ; preds = %.preheader, %122
  %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 !38

.loopexit:                                        ; preds = %128, %._crit_edge121
  %129 = add nuw nsw i32 %.096112, 1
  %130 = getelementptr inbounds i8, ptr %.098111, i64 96
  %131 = getelementptr inbounds i8, ptr %.099110, i64 96
  %132 = load i32, ptr %81, align 4, !tbaa !30
  %133 = icmp slt i32 %129, %132
  br i1 %133, label %96, label %._crit_edge, !llvm.loop !40

._crit_edge:                                      ; preds = %.loopexit, %83
  %134 = getelementptr inbounds i8, ptr %0, i64 352
  %135 = load i8, ptr %134, align 8, !tbaa !41
  %.not103 = icmp eq i8 %135, 0
  br i1 %.not103, label %152, label %136

136:                                              ; preds = %._crit_edge
  %137 = getelementptr inbounds i8, ptr %0, i64 353
  %138 = load i8, ptr %137, align 1, !tbaa !42
  %139 = icmp eq i8 %138, 1
  br i1 %139, label %140, label %145

140:                                              ; preds = %136
  %141 = getelementptr inbounds i8, ptr %1, i64 277
  store i8 1, ptr %141, align 1, !tbaa !43
  %142 = getelementptr inbounds i8, ptr %0, i64 354
  %143 = load i8, ptr %142, align 2, !tbaa !44
  %144 = getelementptr inbounds i8, ptr %1, i64 278
  store i8 %143, ptr %144, align 2, !tbaa !45
  br label %145

145:                                              ; preds = %140, %136
  %146 = getelementptr inbounds i8, ptr %0, i64 355
  %147 = load i8, ptr %146, align 1, !tbaa !46
  %148 = getelementptr inbounds i8, ptr %1, i64 279
  store i8 %147, ptr %148, align 1, !tbaa !47
  %149 = getelementptr inbounds i8, ptr %0, i64 356
  %150 = getelementptr inbounds i8, ptr %1, i64 280
  %151 = load <2 x i16>, ptr %149, align 4, !tbaa !37
  store <2 x i16> %151, ptr %150, align 8, !tbaa !37
  br label %152

152:                                              ; preds = %145, %._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, !8, 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, !8, i64 256, !8, i64 257, !8, i64 258, !8, i64 259, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !8, i64 276, !8, i64 277, !8, i64 278, !8, i64 279, !12, i64 280, !12, i64 282, !8, i64 284, !10, i64 288, !8, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !8, i64 312, !10, i64 344, !10, i64 348, !10, i64 352, !8, i64 356, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !7, i64 416, !7, 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, !10, i64 496}
!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 = !{!21, !10, i64 60}
!21 = !{!"jpeg_decompress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !8, 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, !8, i64 88, !8, i64 89, !10, i64 92, !8, i64 96, !8, i64 97, !8, i64 98, !10, i64 100, !8, i64 104, !10, i64 108, !8, i64 112, !8, i64 113, !8, i64 114, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !7, i64 176, !8, i64 184, !8, i64 216, !8, i64 248, !10, i64 280, !7, i64 288, !8, i64 296, !8, i64 297, !8, i64 298, !8, i64 314, !8, i64 330, !10, i64 348, !8, i64 352, !8, i64 353, !8, i64 354, !8, i64 355, !12, i64 356, !12, i64 358, !8, i64 360, !8, i64 361, !8, i64 362, !7, i64 368, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !7, i64 392, !10, i64 400, !8, i64 408, !10, i64 440, !10, i64 444, !10, i64 448, !8, i64 452, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592}
!22 = !{!21, !10, i64 280}
!23 = !{!6, !10, i64 72}
!24 = !{!21, !8, i64 362}
!25 = !{!6, !8, i64 259}
!26 = !{!7, !7, i64 0}
!27 = !{!28, !8, i64 128}
!28 = !{!"", !8, i64 0, !8, i64 128}
!29 = !{!21, !10, i64 56}
!30 = !{!6, !10, i64 76}
!31 = !{!6, !7, i64 88}
!32 = !{!21, !7, i64 288}
!33 = !{!34, !10, i64 0}
!34 = !{!"", !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, !8, 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}
!35 = !{!34, !10, i64 16}
!36 = !{!34, !7, i64 80}
!37 = !{!12, !12, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = !{!21, !8, i64 352}
!42 = !{!21, !8, i64 353}
!43 = !{!6, !8, i64 277}
!44 = !{!21, !8, i64 354}
!45 = !{!6, !8, i64 278}
!46 = !{!21, !8, i64 355}
!47 = !{!6, !8, i64 279}


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