; LLVM IR from EyalAr/lwip :: src/lib/jpeg (jcparam)

; 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, i32, i32, i32, i32, ptr, [4 x ptr], [4 x i32], [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, i32, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, 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_component_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }

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

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

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

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

30:                                               ; preds = %11, %2
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %32, i32 0, i32 18
  store i32 %31, ptr %33, align 8, !tbaa !21
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %34, i32 0, i32 38
  store i32 0, ptr %35, align 4, !tbaa !22
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %36, i32 0, i32 44
  store i32 0, ptr %37, align 8, !tbaa !23
  %38 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %38, label %532 [
    i32 0, label %39
    i32 1, label %109
    i32 2, label %130
    i32 3, label %207
    i32 4, label %260
    i32 5, label %329
    i32 6, label %398
    i32 7, label %477
  ]

39:                                               ; preds = %30
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %40, i32 0, i32 9
  %42 = load i32, ptr %41, align 8, !tbaa !24
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %43, i32 0, i32 17
  store i32 %42, ptr %44, align 4, !tbaa !25
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %45, i32 0, i32 17
  %47 = load i32, ptr %46, align 4, !tbaa !25
  %48 = icmp slt i32 %47, 1
  br i1 %48, label %54, label %49

49:                                               ; preds = %39
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %50, i32 0, i32 17
  %52 = load i32, ptr %51, align 4, !tbaa !25
  %53 = icmp sgt i32 %52, 10
  br i1 %53, label %54, label %78

54:                                               ; preds = %49, %39
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %57, i32 0, i32 5
  store i32 27, ptr %58, align 8, !tbaa !16
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %59, i32 0, i32 17
  %61 = load i32, ptr %60, align 4, !tbaa !25
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %64, i32 0, i32 6
  %66 = getelementptr inbounds [8 x i32], ptr %65, i64 0, i64 0
  store i32 %61, ptr %66, align 4, !tbaa !19
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %69, i32 0, i32 6
  %71 = getelementptr inbounds [8 x i32], ptr %70, i64 0, i64 1
  store i32 10, ptr %71, align 4, !tbaa !19
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !20
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  call void %76(ptr noundef %77)
  br label %78

78:                                               ; preds = %54, %49
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %105, %78
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %81, i32 0, i32 17
  %83 = load i32, ptr %82, align 4, !tbaa !25
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %85, label %108

85:                                               ; preds = %79
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %86, i32 0, i32 19
  %88 = load ptr, ptr %87, align 8, !tbaa !26
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.jpeg_component_info, ptr %88, i64 %90
  store ptr %91, ptr %5, align 8, !tbaa !5
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.jpeg_component_info, ptr %93, i32 0, i32 0
  store i32 %92, ptr %94, align 8, !tbaa !27
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.jpeg_component_info, ptr %95, i32 0, i32 2
  store i32 1, ptr %96, align 8, !tbaa !29
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.jpeg_component_info, ptr %97, i32 0, i32 3
  store i32 1, ptr %98, align 4, !tbaa !30
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.jpeg_component_info, ptr %99, i32 0, i32 4
  store i32 0, ptr %100, align 8, !tbaa !31
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.jpeg_component_info, ptr %101, i32 0, i32 5
  store i32 0, ptr %102, align 4, !tbaa !32
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.jpeg_component_info, ptr %103, i32 0, i32 6
  store i32 0, ptr %104, align 8, !tbaa !33
  br label %105

105:                                              ; preds = %85
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %6, align 4, !tbaa !9
  br label %79, !llvm.loop !34

108:                                              ; preds = %79
  br label %543

109:                                              ; preds = %30
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %110, i32 0, i32 38
  store i32 1, ptr %111, align 4, !tbaa !22
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %112, i32 0, i32 17
  store i32 1, ptr %113, align 4, !tbaa !25
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %114, i32 0, i32 19
  %116 = load ptr, ptr %115, align 8, !tbaa !26
  %117 = getelementptr inbounds %struct.jpeg_component_info, ptr %116, i64 0
  store ptr %117, ptr %5, align 8, !tbaa !5
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.jpeg_component_info, ptr %118, i32 0, i32 0
  store i32 1, ptr %119, align 8, !tbaa !27
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.jpeg_component_info, ptr %120, i32 0, i32 2
  store i32 1, ptr %121, align 8, !tbaa !29
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.jpeg_component_info, ptr %122, i32 0, i32 3
  store i32 1, ptr %123, align 4, !tbaa !30
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.jpeg_component_info, ptr %124, i32 0, i32 4
  store i32 0, ptr %125, align 8, !tbaa !31
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.jpeg_component_info, ptr %126, i32 0, i32 5
  store i32 0, ptr %127, align 4, !tbaa !32
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.jpeg_component_info, ptr %128, i32 0, i32 6
  store i32 0, ptr %129, align 8, !tbaa !33
  br label %543

130:                                              ; preds = %30
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %131, i32 0, i32 44
  store i32 1, ptr %132, align 8, !tbaa !23
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %133, i32 0, i32 17
  store i32 3, ptr %134, align 4, !tbaa !25
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %135, i32 0, i32 19
  %137 = load ptr, ptr %136, align 8, !tbaa !26
  %138 = getelementptr inbounds %struct.jpeg_component_info, ptr %137, i64 0
  store ptr %138, ptr %5, align 8, !tbaa !5
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.jpeg_component_info, ptr %139, i32 0, i32 0
  store i32 82, ptr %140, align 8, !tbaa !27
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.jpeg_component_info, ptr %141, i32 0, i32 2
  store i32 1, ptr %142, align 8, !tbaa !29
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.jpeg_component_info, ptr %143, i32 0, i32 3
  store i32 1, ptr %144, align 4, !tbaa !30
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.jpeg_component_info, ptr %145, i32 0, i32 4
  store i32 0, ptr %146, align 8, !tbaa !31
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %147, i32 0, i32 45
  %149 = load i32, ptr %148, align 4, !tbaa !36
  %150 = icmp eq i32 %149, 1
  %151 = zext i1 %150 to i64
  %152 = select i1 %150, i32 1, i32 0
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.jpeg_component_info, ptr %153, i32 0, i32 5
  store i32 %152, ptr %154, align 4, !tbaa !32
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %155, i32 0, i32 45
  %157 = load i32, ptr %156, align 4, !tbaa !36
  %158 = icmp eq i32 %157, 1
  %159 = zext i1 %158 to i64
  %160 = select i1 %158, i32 1, i32 0
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.jpeg_component_info, ptr %161, i32 0, i32 6
  store i32 %160, ptr %162, align 8, !tbaa !33
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %163, i32 0, i32 19
  %165 = load ptr, ptr %164, align 8, !tbaa !26
  %166 = getelementptr inbounds %struct.jpeg_component_info, ptr %165, i64 1
  store ptr %166, ptr %5, align 8, !tbaa !5
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.jpeg_component_info, ptr %167, i32 0, i32 0
  store i32 71, ptr %168, align 8, !tbaa !27
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.jpeg_component_info, ptr %169, i32 0, i32 2
  store i32 1, ptr %170, align 8, !tbaa !29
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.jpeg_component_info, ptr %171, i32 0, i32 3
  store i32 1, ptr %172, align 4, !tbaa !30
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.jpeg_component_info, ptr %173, i32 0, i32 4
  store i32 0, ptr %174, align 8, !tbaa !31
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.jpeg_component_info, ptr %175, i32 0, i32 5
  store i32 0, ptr %176, align 4, !tbaa !32
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.jpeg_component_info, ptr %177, i32 0, i32 6
  store i32 0, ptr %178, align 8, !tbaa !33
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %179, i32 0, i32 19
  %181 = load ptr, ptr %180, align 8, !tbaa !26
  %182 = getelementptr inbounds %struct.jpeg_component_info, ptr %181, i64 2
  store ptr %182, ptr %5, align 8, !tbaa !5
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.jpeg_component_info, ptr %183, i32 0, i32 0
  store i32 66, ptr %184, align 8, !tbaa !27
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.jpeg_component_info, ptr %185, i32 0, i32 2
  store i32 1, ptr %186, align 8, !tbaa !29
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.jpeg_component_info, ptr %187, i32 0, i32 3
  store i32 1, ptr %188, align 4, !tbaa !30
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.jpeg_component_info, ptr %189, i32 0, i32 4
  store i32 0, ptr %190, align 8, !tbaa !31
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %191, i32 0, i32 45
  %193 = load i32, ptr %192, align 4, !tbaa !36
  %194 = icmp eq i32 %193, 1
  %195 = zext i1 %194 to i64
  %196 = select i1 %194, i32 1, i32 0
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.jpeg_component_info, ptr %197, i32 0, i32 5
  store i32 %196, ptr %198, align 4, !tbaa !32
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %199, i32 0, i32 45
  %201 = load i32, ptr %200, align 4, !tbaa !36
  %202 = icmp eq i32 %201, 1
  %203 = zext i1 %202 to i64
  %204 = select i1 %202, i32 1, i32 0
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.jpeg_component_info, ptr %205, i32 0, i32 6
  store i32 %204, ptr %206, align 8, !tbaa !33
  br label %543

207:                                              ; preds = %30
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %208, i32 0, i32 38
  store i32 1, ptr %209, align 4, !tbaa !22
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %210, i32 0, i32 17
  store i32 3, ptr %211, align 4, !tbaa !25
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %212, i32 0, i32 19
  %214 = load ptr, ptr %213, align 8, !tbaa !26
  %215 = getelementptr inbounds %struct.jpeg_component_info, ptr %214, i64 0
  store ptr %215, ptr %5, align 8, !tbaa !5
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.jpeg_component_info, ptr %216, i32 0, i32 0
  store i32 1, ptr %217, align 8, !tbaa !27
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.jpeg_component_info, ptr %218, i32 0, i32 2
  store i32 2, ptr %219, align 8, !tbaa !29
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.jpeg_component_info, ptr %220, i32 0, i32 3
  store i32 2, ptr %221, align 4, !tbaa !30
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.jpeg_component_info, ptr %222, i32 0, i32 4
  store i32 0, ptr %223, align 8, !tbaa !31
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.jpeg_component_info, ptr %224, i32 0, i32 5
  store i32 0, ptr %225, align 4, !tbaa !32
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.jpeg_component_info, ptr %226, i32 0, i32 6
  store i32 0, ptr %227, align 8, !tbaa !33
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %228, i32 0, i32 19
  %230 = load ptr, ptr %229, align 8, !tbaa !26
  %231 = getelementptr inbounds %struct.jpeg_component_info, ptr %230, i64 1
  store ptr %231, ptr %5, align 8, !tbaa !5
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.jpeg_component_info, ptr %232, i32 0, i32 0
  store i32 2, ptr %233, align 8, !tbaa !27
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.jpeg_component_info, ptr %234, i32 0, i32 2
  store i32 1, ptr %235, align 8, !tbaa !29
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.jpeg_component_info, ptr %236, i32 0, i32 3
  store i32 1, ptr %237, align 4, !tbaa !30
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.jpeg_component_info, ptr %238, i32 0, i32 4
  store i32 1, ptr %239, align 8, !tbaa !31
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.jpeg_component_info, ptr %240, i32 0, i32 5
  store i32 1, ptr %241, align 4, !tbaa !32
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.jpeg_component_info, ptr %242, i32 0, i32 6
  store i32 1, ptr %243, align 8, !tbaa !33
  %244 = load ptr, ptr %3, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %244, i32 0, i32 19
  %246 = load ptr, ptr %245, align 8, !tbaa !26
  %247 = getelementptr inbounds %struct.jpeg_component_info, ptr %246, i64 2
  store ptr %247, ptr %5, align 8, !tbaa !5
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.jpeg_component_info, ptr %248, i32 0, i32 0
  store i32 3, ptr %249, align 8, !tbaa !27
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.jpeg_component_info, ptr %250, i32 0, i32 2
  store i32 1, ptr %251, align 8, !tbaa !29
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.jpeg_component_info, ptr %252, i32 0, i32 3
  store i32 1, ptr %253, align 4, !tbaa !30
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.jpeg_component_info, ptr %254, i32 0, i32 4
  store i32 1, ptr %255, align 8, !tbaa !31
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.jpeg_component_info, ptr %256, i32 0, i32 5
  store i32 1, ptr %257, align 4, !tbaa !32
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.jpeg_component_info, ptr %258, i32 0, i32 6
  store i32 1, ptr %259, align 8, !tbaa !33
  br label %543

260:                                              ; preds = %30
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %261, i32 0, i32 44
  store i32 1, ptr %262, align 8, !tbaa !23
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %263, i32 0, i32 17
  store i32 4, ptr %264, align 4, !tbaa !25
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %265, i32 0, i32 19
  %267 = load ptr, ptr %266, align 8, !tbaa !26
  %268 = getelementptr inbounds %struct.jpeg_component_info, ptr %267, i64 0
  store ptr %268, ptr %5, align 8, !tbaa !5
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.jpeg_component_info, ptr %269, i32 0, i32 0
  store i32 67, ptr %270, align 8, !tbaa !27
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.jpeg_component_info, ptr %271, i32 0, i32 2
  store i32 1, ptr %272, align 8, !tbaa !29
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.jpeg_component_info, ptr %273, i32 0, i32 3
  store i32 1, ptr %274, align 4, !tbaa !30
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.jpeg_component_info, ptr %275, i32 0, i32 4
  store i32 0, ptr %276, align 8, !tbaa !31
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.jpeg_component_info, ptr %277, i32 0, i32 5
  store i32 0, ptr %278, align 4, !tbaa !32
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.jpeg_component_info, ptr %279, i32 0, i32 6
  store i32 0, ptr %280, align 8, !tbaa !33
  %281 = load ptr, ptr %3, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %281, i32 0, i32 19
  %283 = load ptr, ptr %282, align 8, !tbaa !26
  %284 = getelementptr inbounds %struct.jpeg_component_info, ptr %283, i64 1
  store ptr %284, ptr %5, align 8, !tbaa !5
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.jpeg_component_info, ptr %285, i32 0, i32 0
  store i32 77, ptr %286, align 8, !tbaa !27
  %287 = load ptr, ptr %5, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.jpeg_component_info, ptr %287, i32 0, i32 2
  store i32 1, ptr %288, align 8, !tbaa !29
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.jpeg_component_info, ptr %289, i32 0, i32 3
  store i32 1, ptr %290, align 4, !tbaa !30
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.jpeg_component_info, ptr %291, i32 0, i32 4
  store i32 0, ptr %292, align 8, !tbaa !31
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.jpeg_component_info, ptr %293, i32 0, i32 5
  store i32 0, ptr %294, align 4, !tbaa !32
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.jpeg_component_info, ptr %295, i32 0, i32 6
  store i32 0, ptr %296, align 8, !tbaa !33
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %297, i32 0, i32 19
  %299 = load ptr, ptr %298, align 8, !tbaa !26
  %300 = getelementptr inbounds %struct.jpeg_component_info, ptr %299, i64 2
  store ptr %300, ptr %5, align 8, !tbaa !5
  %301 = load ptr, ptr %5, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.jpeg_component_info, ptr %301, i32 0, i32 0
  store i32 89, ptr %302, align 8, !tbaa !27
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.jpeg_component_info, ptr %303, i32 0, i32 2
  store i32 1, ptr %304, align 8, !tbaa !29
  %305 = load ptr, ptr %5, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.jpeg_component_info, ptr %305, i32 0, i32 3
  store i32 1, ptr %306, align 4, !tbaa !30
  %307 = load ptr, ptr %5, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.jpeg_component_info, ptr %307, i32 0, i32 4
  store i32 0, ptr %308, align 8, !tbaa !31
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.jpeg_component_info, ptr %309, i32 0, i32 5
  store i32 0, ptr %310, align 4, !tbaa !32
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.jpeg_component_info, ptr %311, i32 0, i32 6
  store i32 0, ptr %312, align 8, !tbaa !33
  %313 = load ptr, ptr %3, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %313, i32 0, i32 19
  %315 = load ptr, ptr %314, align 8, !tbaa !26
  %316 = getelementptr inbounds %struct.jpeg_component_info, ptr %315, i64 3
  store ptr %316, ptr %5, align 8, !tbaa !5
  %317 = load ptr, ptr %5, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.jpeg_component_info, ptr %317, i32 0, i32 0
  store i32 75, ptr %318, align 8, !tbaa !27
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.jpeg_component_info, ptr %319, i32 0, i32 2
  store i32 1, ptr %320, align 8, !tbaa !29
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.jpeg_component_info, ptr %321, i32 0, i32 3
  store i32 1, ptr %322, align 4, !tbaa !30
  %323 = load ptr, ptr %5, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.jpeg_component_info, ptr %323, i32 0, i32 4
  store i32 0, ptr %324, align 8, !tbaa !31
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.jpeg_component_info, ptr %325, i32 0, i32 5
  store i32 0, ptr %326, align 4, !tbaa !32
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.jpeg_component_info, ptr %327, i32 0, i32 6
  store i32 0, ptr %328, align 8, !tbaa !33
  br label %543

329:                                              ; preds = %30
  %330 = load ptr, ptr %3, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %330, i32 0, i32 44
  store i32 1, ptr %331, align 8, !tbaa !23
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %332, i32 0, i32 17
  store i32 4, ptr %333, align 4, !tbaa !25
  %334 = load ptr, ptr %3, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %334, i32 0, i32 19
  %336 = load ptr, ptr %335, align 8, !tbaa !26
  %337 = getelementptr inbounds %struct.jpeg_component_info, ptr %336, i64 0
  store ptr %337, ptr %5, align 8, !tbaa !5
  %338 = load ptr, ptr %5, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.jpeg_component_info, ptr %338, i32 0, i32 0
  store i32 1, ptr %339, align 8, !tbaa !27
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.jpeg_component_info, ptr %340, i32 0, i32 2
  store i32 2, ptr %341, align 8, !tbaa !29
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.jpeg_component_info, ptr %342, i32 0, i32 3
  store i32 2, ptr %343, align 4, !tbaa !30
  %344 = load ptr, ptr %5, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.jpeg_component_info, ptr %344, i32 0, i32 4
  store i32 0, ptr %345, align 8, !tbaa !31
  %346 = load ptr, ptr %5, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.jpeg_component_info, ptr %346, i32 0, i32 5
  store i32 0, ptr %347, align 4, !tbaa !32
  %348 = load ptr, ptr %5, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.jpeg_component_info, ptr %348, i32 0, i32 6
  store i32 0, ptr %349, align 8, !tbaa !33
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %350, i32 0, i32 19
  %352 = load ptr, ptr %351, align 8, !tbaa !26
  %353 = getelementptr inbounds %struct.jpeg_component_info, ptr %352, i64 1
  store ptr %353, ptr %5, align 8, !tbaa !5
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.jpeg_component_info, ptr %354, i32 0, i32 0
  store i32 2, ptr %355, align 8, !tbaa !27
  %356 = load ptr, ptr %5, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.jpeg_component_info, ptr %356, i32 0, i32 2
  store i32 1, ptr %357, align 8, !tbaa !29
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.jpeg_component_info, ptr %358, i32 0, i32 3
  store i32 1, ptr %359, align 4, !tbaa !30
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.jpeg_component_info, ptr %360, i32 0, i32 4
  store i32 1, ptr %361, align 8, !tbaa !31
  %362 = load ptr, ptr %5, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.jpeg_component_info, ptr %362, i32 0, i32 5
  store i32 1, ptr %363, align 4, !tbaa !32
  %364 = load ptr, ptr %5, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.jpeg_component_info, ptr %364, i32 0, i32 6
  store i32 1, ptr %365, align 8, !tbaa !33
  %366 = load ptr, ptr %3, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %366, i32 0, i32 19
  %368 = load ptr, ptr %367, align 8, !tbaa !26
  %369 = getelementptr inbounds %struct.jpeg_component_info, ptr %368, i64 2
  store ptr %369, ptr %5, align 8, !tbaa !5
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.jpeg_component_info, ptr %370, i32 0, i32 0
  store i32 3, ptr %371, align 8, !tbaa !27
  %372 = load ptr, ptr %5, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.jpeg_component_info, ptr %372, i32 0, i32 2
  store i32 1, ptr %373, align 8, !tbaa !29
  %374 = load ptr, ptr %5, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.jpeg_component_info, ptr %374, i32 0, i32 3
  store i32 1, ptr %375, align 4, !tbaa !30
  %376 = load ptr, ptr %5, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.jpeg_component_info, ptr %376, i32 0, i32 4
  store i32 1, ptr %377, align 8, !tbaa !31
  %378 = load ptr, ptr %5, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.jpeg_component_info, ptr %378, i32 0, i32 5
  store i32 1, ptr %379, align 4, !tbaa !32
  %380 = load ptr, ptr %5, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.jpeg_component_info, ptr %380, i32 0, i32 6
  store i32 1, ptr %381, align 8, !tbaa !33
  %382 = load ptr, ptr %3, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %382, i32 0, i32 19
  %384 = load ptr, ptr %383, align 8, !tbaa !26
  %385 = getelementptr inbounds %struct.jpeg_component_info, ptr %384, i64 3
  store ptr %385, ptr %5, align 8, !tbaa !5
  %386 = load ptr, ptr %5, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.jpeg_component_info, ptr %386, i32 0, i32 0
  store i32 4, ptr %387, align 8, !tbaa !27
  %388 = load ptr, ptr %5, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.jpeg_component_info, ptr %388, i32 0, i32 2
  store i32 2, ptr %389, align 8, !tbaa !29
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.jpeg_component_info, ptr %390, i32 0, i32 3
  store i32 2, ptr %391, align 4, !tbaa !30
  %392 = load ptr, ptr %5, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.jpeg_component_info, ptr %392, i32 0, i32 4
  store i32 0, ptr %393, align 8, !tbaa !31
  %394 = load ptr, ptr %5, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.jpeg_component_info, ptr %394, i32 0, i32 5
  store i32 0, ptr %395, align 4, !tbaa !32
  %396 = load ptr, ptr %5, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.jpeg_component_info, ptr %396, i32 0, i32 6
  store i32 0, ptr %397, align 8, !tbaa !33
  br label %543

398:                                              ; preds = %30
  %399 = load ptr, ptr %3, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %399, i32 0, i32 38
  store i32 1, ptr %400, align 4, !tbaa !22
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %401, i32 0, i32 39
  store i8 2, ptr %402, align 8, !tbaa !37
  %403 = load ptr, ptr %3, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %403, i32 0, i32 17
  store i32 3, ptr %404, align 4, !tbaa !25
  %405 = load ptr, ptr %3, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %405, i32 0, i32 19
  %407 = load ptr, ptr %406, align 8, !tbaa !26
  %408 = getelementptr inbounds %struct.jpeg_component_info, ptr %407, i64 0
  store ptr %408, ptr %5, align 8, !tbaa !5
  %409 = load ptr, ptr %5, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.jpeg_component_info, ptr %409, i32 0, i32 0
  store i32 114, ptr %410, align 8, !tbaa !27
  %411 = load ptr, ptr %5, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.jpeg_component_info, ptr %411, i32 0, i32 2
  store i32 1, ptr %412, align 8, !tbaa !29
  %413 = load ptr, ptr %5, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.jpeg_component_info, ptr %413, i32 0, i32 3
  store i32 1, ptr %414, align 4, !tbaa !30
  %415 = load ptr, ptr %5, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.jpeg_component_info, ptr %415, i32 0, i32 4
  store i32 0, ptr %416, align 8, !tbaa !31
  %417 = load ptr, ptr %3, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %417, i32 0, i32 45
  %419 = load i32, ptr %418, align 4, !tbaa !36
  %420 = icmp eq i32 %419, 1
  %421 = zext i1 %420 to i64
  %422 = select i1 %420, i32 1, i32 0
  %423 = load ptr, ptr %5, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.jpeg_component_info, ptr %423, i32 0, i32 5
  store i32 %422, ptr %424, align 4, !tbaa !32
  %425 = load ptr, ptr %3, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %425, i32 0, i32 45
  %427 = load i32, ptr %426, align 4, !tbaa !36
  %428 = icmp eq i32 %427, 1
  %429 = zext i1 %428 to i64
  %430 = select i1 %428, i32 1, i32 0
  %431 = load ptr, ptr %5, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.jpeg_component_info, ptr %431, i32 0, i32 6
  store i32 %430, ptr %432, align 8, !tbaa !33
  %433 = load ptr, ptr %3, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %433, i32 0, i32 19
  %435 = load ptr, ptr %434, align 8, !tbaa !26
  %436 = getelementptr inbounds %struct.jpeg_component_info, ptr %435, i64 1
  store ptr %436, ptr %5, align 8, !tbaa !5
  %437 = load ptr, ptr %5, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.jpeg_component_info, ptr %437, i32 0, i32 0
  store i32 103, ptr %438, align 8, !tbaa !27
  %439 = load ptr, ptr %5, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.jpeg_component_info, ptr %439, i32 0, i32 2
  store i32 1, ptr %440, align 8, !tbaa !29
  %441 = load ptr, ptr %5, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.jpeg_component_info, ptr %441, i32 0, i32 3
  store i32 1, ptr %442, align 4, !tbaa !30
  %443 = load ptr, ptr %5, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.jpeg_component_info, ptr %443, i32 0, i32 4
  store i32 0, ptr %444, align 8, !tbaa !31
  %445 = load ptr, ptr %5, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.jpeg_component_info, ptr %445, i32 0, i32 5
  store i32 0, ptr %446, align 4, !tbaa !32
  %447 = load ptr, ptr %5, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct.jpeg_component_info, ptr %447, i32 0, i32 6
  store i32 0, ptr %448, align 8, !tbaa !33
  %449 = load ptr, ptr %3, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %449, i32 0, i32 19
  %451 = load ptr, ptr %450, align 8, !tbaa !26
  %452 = getelementptr inbounds %struct.jpeg_component_info, ptr %451, i64 2
  store ptr %452, ptr %5, align 8, !tbaa !5
  %453 = load ptr, ptr %5, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.jpeg_component_info, ptr %453, i32 0, i32 0
  store i32 98, ptr %454, align 8, !tbaa !27
  %455 = load ptr, ptr %5, align 8, !tbaa !5
  %456 = getelementptr inbounds %struct.jpeg_component_info, ptr %455, i32 0, i32 2
  store i32 1, ptr %456, align 8, !tbaa !29
  %457 = load ptr, ptr %5, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.jpeg_component_info, ptr %457, i32 0, i32 3
  store i32 1, ptr %458, align 4, !tbaa !30
  %459 = load ptr, ptr %5, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.jpeg_component_info, ptr %459, i32 0, i32 4
  store i32 0, ptr %460, align 8, !tbaa !31
  %461 = load ptr, ptr %3, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %461, i32 0, i32 45
  %463 = load i32, ptr %462, align 4, !tbaa !36
  %464 = icmp eq i32 %463, 1
  %465 = zext i1 %464 to i64
  %466 = select i1 %464, i32 1, i32 0
  %467 = load ptr, ptr %5, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.jpeg_component_info, ptr %467, i32 0, i32 5
  store i32 %466, ptr %468, align 4, !tbaa !32
  %469 = load ptr, ptr %3, align 8, !tbaa !5
  %470 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %469, i32 0, i32 45
  %471 = load i32, ptr %470, align 4, !tbaa !36
  %472 = icmp eq i32 %471, 1
  %473 = zext i1 %472 to i64
  %474 = select i1 %472, i32 1, i32 0
  %475 = load ptr, ptr %5, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.jpeg_component_info, ptr %475, i32 0, i32 6
  store i32 %474, ptr %476, align 8, !tbaa !33
  br label %543

477:                                              ; preds = %30
  %478 = load ptr, ptr %3, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %478, i32 0, i32 38
  store i32 1, ptr %479, align 4, !tbaa !22
  %480 = load ptr, ptr %3, align 8, !tbaa !5
  %481 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %480, i32 0, i32 39
  store i8 2, ptr %481, align 8, !tbaa !37
  %482 = load ptr, ptr %3, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %482, i32 0, i32 17
  store i32 3, ptr %483, align 4, !tbaa !25
  %484 = load ptr, ptr %3, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %484, i32 0, i32 19
  %486 = load ptr, ptr %485, align 8, !tbaa !26
  %487 = getelementptr inbounds %struct.jpeg_component_info, ptr %486, i64 0
  store ptr %487, ptr %5, align 8, !tbaa !5
  %488 = load ptr, ptr %5, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.jpeg_component_info, ptr %488, i32 0, i32 0
  store i32 1, ptr %489, align 8, !tbaa !27
  %490 = load ptr, ptr %5, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.jpeg_component_info, ptr %490, i32 0, i32 2
  store i32 2, ptr %491, align 8, !tbaa !29
  %492 = load ptr, ptr %5, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.jpeg_component_info, ptr %492, i32 0, i32 3
  store i32 2, ptr %493, align 4, !tbaa !30
  %494 = load ptr, ptr %5, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.jpeg_component_info, ptr %494, i32 0, i32 4
  store i32 0, ptr %495, align 8, !tbaa !31
  %496 = load ptr, ptr %5, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.jpeg_component_info, ptr %496, i32 0, i32 5
  store i32 0, ptr %497, align 4, !tbaa !32
  %498 = load ptr, ptr %5, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.jpeg_component_info, ptr %498, i32 0, i32 6
  store i32 0, ptr %499, align 8, !tbaa !33
  %500 = load ptr, ptr %3, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %500, i32 0, i32 19
  %502 = load ptr, ptr %501, align 8, !tbaa !26
  %503 = getelementptr inbounds %struct.jpeg_component_info, ptr %502, i64 1
  store ptr %503, ptr %5, align 8, !tbaa !5
  %504 = load ptr, ptr %5, align 8, !tbaa !5
  %505 = getelementptr inbounds %struct.jpeg_component_info, ptr %504, i32 0, i32 0
  store i32 34, ptr %505, align 8, !tbaa !27
  %506 = load ptr, ptr %5, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.jpeg_component_info, ptr %506, i32 0, i32 2
  store i32 1, ptr %507, align 8, !tbaa !29
  %508 = load ptr, ptr %5, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.jpeg_component_info, ptr %508, i32 0, i32 3
  store i32 1, ptr %509, align 4, !tbaa !30
  %510 = load ptr, ptr %5, align 8, !tbaa !5
  %511 = getelementptr inbounds %struct.jpeg_component_info, ptr %510, i32 0, i32 4
  store i32 1, ptr %511, align 8, !tbaa !31
  %512 = load ptr, ptr %5, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.jpeg_component_info, ptr %512, i32 0, i32 5
  store i32 1, ptr %513, align 4, !tbaa !32
  %514 = load ptr, ptr %5, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.jpeg_component_info, ptr %514, i32 0, i32 6
  store i32 1, ptr %515, align 8, !tbaa !33
  %516 = load ptr, ptr %3, align 8, !tbaa !5
  %517 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %516, i32 0, i32 19
  %518 = load ptr, ptr %517, align 8, !tbaa !26
  %519 = getelementptr inbounds %struct.jpeg_component_info, ptr %518, i64 2
  store ptr %519, ptr %5, align 8, !tbaa !5
  %520 = load ptr, ptr %5, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.jpeg_component_info, ptr %520, i32 0, i32 0
  store i32 35, ptr %521, align 8, !tbaa !27
  %522 = load ptr, ptr %5, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.jpeg_component_info, ptr %522, i32 0, i32 2
  store i32 1, ptr %523, align 8, !tbaa !29
  %524 = load ptr, ptr %5, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.jpeg_component_info, ptr %524, i32 0, i32 3
  store i32 1, ptr %525, align 4, !tbaa !30
  %526 = load ptr, ptr %5, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.jpeg_component_info, ptr %526, i32 0, i32 4
  store i32 1, ptr %527, align 8, !tbaa !31
  %528 = load ptr, ptr %5, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.jpeg_component_info, ptr %528, i32 0, i32 5
  store i32 1, ptr %529, align 4, !tbaa !32
  %530 = load ptr, ptr %5, align 8, !tbaa !5
  %531 = getelementptr inbounds %struct.jpeg_component_info, ptr %530, i32 0, i32 6
  store i32 1, ptr %531, align 8, !tbaa !33
  br label %543

532:                                              ; preds = %30
  %533 = load ptr, ptr %3, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %533, i32 0, i32 0
  %535 = load ptr, ptr %534, align 8, !tbaa !15
  %536 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %535, i32 0, i32 5
  store i32 11, ptr %536, align 8, !tbaa !16
  %537 = load ptr, ptr %3, align 8, !tbaa !5
  %538 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %537, i32 0, i32 0
  %539 = load ptr, ptr %538, align 8, !tbaa !15
  %540 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %539, i32 0, i32 0
  %541 = load ptr, ptr %540, align 8, !tbaa !20
  %542 = load ptr, ptr %3, align 8, !tbaa !5
  call void %541(ptr noundef %542)
  br label %543

543:                                              ; preds = %532, %477, %398, %329, %260, %207, %130, %109, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 36}
!12 = !{!"jpeg_compress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !7, i64 112, !7, i64 144, !7, i64 160, !7, i64 192, !7, i64 224, !7, i64 240, !7, i64 256, !10, i64 272, !6, i64 280, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !7, i64 328, !7, i64 329, !7, i64 330, !14, i64 332, !14, i64 334, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !7, i64 376, !10, i64 408, !10, i64 412, !10, i64 416, !7, i64 420, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !6, i64 480, !10, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !10, i64 576}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !6, i64 0}
!16 = !{!17, !10, i64 40}
!17 = !{!"jpeg_error_mgr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !7, i64 44, !10, i64 124, !18, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !10, i64 160, !10, i64 164}
!18 = !{!"long", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!17, !6, i64 0}
!21 = !{!12, !10, i64 96}
!22 = !{!12, !10, i64 324}
!23 = !{!12, !10, i64 336}
!24 = !{!12, !10, i64 56}
!25 = !{!12, !10, i64 92}
!26 = !{!12, !6, i64 104}
!27 = !{!28, !10, i64 0}
!28 = !{!"", !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, !10, i64 76, !6, i64 80, !6, i64 88}
!29 = !{!28, !10, i64 8}
!30 = !{!28, !10, i64 12}
!31 = !{!28, !10, i64 16}
!32 = !{!28, !10, i64 20}
!33 = !{!28, !10, i64 24}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!12, !10, i64 340}
!37 = !{!12, !7, i64 328}


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

%struct.jpeg_component_info = type { i32, 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_set_colorspace(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, 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 %0, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 21, 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 %0, align 8, !tbaa !13
  %10 = load ptr, ptr %9, align 8, !tbaa !18
  tail call void %10(ptr noundef nonnull %0) #1
  br label %11

11:                                               ; preds = %5, %2
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %1, ptr %12, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %0, i64 324
  store i32 0, ptr %13, align 4, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %0, i64 336
  store i32 0, ptr %14, align 8, !tbaa !21
  switch i32 %1, label %157 [
    i32 0, label %15
    i32 1, label %51
    i32 2, label %57
    i32 3, label %79
    i32 4, label %91
    i32 5, label %106
    i32 6, label %121
    i32 7, label %144
  ]

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = load i32, ptr %16, align 8, !tbaa !22
  %18 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %17, ptr %18, align 4, !tbaa !23
  %19 = add i32 %17, -11
  %or.cond = icmp ult i32 %19, -10
  br i1 %or.cond, label %20, label %.lr.ph

20:                                               ; preds = %15
  %21 = load ptr, ptr %0, align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %21, i64 40
  store i32 27, ptr %22, align 8, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %21, i64 44
  store i32 %17, ptr %23, align 4, !tbaa !17
  %24 = load ptr, ptr %0, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %24, i64 48
  store i32 10, ptr %25, align 4, !tbaa !17
  %26 = load ptr, ptr %0, align 8, !tbaa !13
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  tail call void %27(ptr noundef nonnull %0) #1
  %.pre = load i32, ptr %18, align 4, !tbaa !23
  %28 = icmp sgt i32 %.pre, 0
  br i1 %28, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %15, %20
  %29 = phi i32 [ %.pre, %20 ], [ %17, %15 ]
  %30 = getelementptr inbounds i8, ptr %0, i64 104
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %wide.trip.count = zext nneg i32 %29 to i64
  %32 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 3
  %33 = icmp ult i64 %32, 3
  br i1 %33, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %34

34:                                               ; preds = %34, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %34 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %34 ]
  %35 = getelementptr inbounds %struct.jpeg_component_info, ptr %31, i64 %indvars.iv
  %36 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %36, ptr %35, align 8, !tbaa !25
  %37 = getelementptr inbounds i8, ptr %35, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %37, align 8, !tbaa !27
  %38 = getelementptr inbounds i8, ptr %35, i64 24
  store i32 0, ptr %38, align 8, !tbaa !28
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %39 = getelementptr inbounds %struct.jpeg_component_info, ptr %31, i64 %indvars.iv.next
  %40 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %40, ptr %39, align 8, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %39, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %41, align 8, !tbaa !27
  %42 = getelementptr inbounds i8, ptr %39, i64 24
  store i32 0, ptr %42, align 8, !tbaa !28
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %43 = getelementptr inbounds %struct.jpeg_component_info, ptr %31, i64 %indvars.iv.next.1
  %44 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  store i32 %44, ptr %43, align 8, !tbaa !25
  %45 = getelementptr inbounds i8, ptr %43, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %45, align 8, !tbaa !27
  %46 = getelementptr inbounds i8, ptr %43, i64 24
  store i32 0, ptr %46, align 8, !tbaa !28
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %47 = getelementptr inbounds %struct.jpeg_component_info, ptr %31, i64 %indvars.iv.next.2
  %48 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  store i32 %48, ptr %47, align 8, !tbaa !25
  %49 = getelementptr inbounds i8, ptr %47, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %49, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %47, i64 24
  store i32 0, ptr %50, align 8, !tbaa !28
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %34, !llvm.loop !29

51:                                               ; preds = %11
  store i32 1, ptr %13, align 4, !tbaa !20
  %52 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 1, ptr %52, align 4, !tbaa !23
  %53 = getelementptr inbounds i8, ptr %0, i64 104
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  store i32 1, ptr %54, align 8, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %55, align 8, !tbaa !27
  %56 = getelementptr inbounds i8, ptr %54, i64 24
  store i32 0, ptr %56, align 8, !tbaa !28
  br label %.loopexit

57:                                               ; preds = %11
  store i32 1, ptr %14, align 8, !tbaa !21
  %58 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 3, ptr %58, align 4, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %0, i64 104
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  store i32 82, ptr %60, align 8, !tbaa !25
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  store i32 1, ptr %61, align 8, !tbaa !31
  %62 = getelementptr inbounds i8, ptr %60, i64 12
  store i32 1, ptr %62, align 4, !tbaa !32
  %63 = getelementptr inbounds i8, ptr %60, i64 16
  store i32 0, ptr %63, align 8, !tbaa !33
  %64 = getelementptr inbounds i8, ptr %0, i64 340
  %65 = load i32, ptr %64, align 4, !tbaa !34
  %66 = icmp eq i32 %65, 1
  %67 = zext i1 %66 to i32
  %68 = getelementptr inbounds i8, ptr %60, i64 20
  store i32 %67, ptr %68, align 4, !tbaa !35
  %69 = getelementptr inbounds i8, ptr %60, i64 24
  store i32 %67, ptr %69, align 8, !tbaa !28
  %70 = getelementptr inbounds i8, ptr %60, i64 96
  store i32 71, ptr %70, align 8, !tbaa !25
  %71 = getelementptr inbounds i8, ptr %60, i64 104
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %71, align 8, !tbaa !27
  %72 = getelementptr inbounds i8, ptr %60, i64 120
  store i32 0, ptr %72, align 8, !tbaa !28
  %73 = getelementptr inbounds i8, ptr %60, i64 192
  store i32 66, ptr %73, align 8, !tbaa !25
  %74 = getelementptr inbounds i8, ptr %60, i64 200
  store i32 1, ptr %74, align 8, !tbaa !31
  %75 = getelementptr inbounds i8, ptr %60, i64 204
  store i32 1, ptr %75, align 4, !tbaa !32
  %76 = getelementptr inbounds i8, ptr %60, i64 208
  store i32 0, ptr %76, align 8, !tbaa !33
  %77 = getelementptr inbounds i8, ptr %60, i64 212
  store i32 %67, ptr %77, align 4, !tbaa !35
  %78 = getelementptr inbounds i8, ptr %60, i64 216
  store i32 %67, ptr %78, align 8, !tbaa !28
  br label %.loopexit

79:                                               ; preds = %11
  store i32 1, ptr %13, align 4, !tbaa !20
  %80 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 3, ptr %80, align 4, !tbaa !23
  %81 = getelementptr inbounds i8, ptr %0, i64 104
  %82 = load ptr, ptr %81, align 8, !tbaa !24
  store i32 1, ptr %82, align 8, !tbaa !25
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %83, align 8, !tbaa !27
  %84 = getelementptr inbounds i8, ptr %82, i64 24
  store i32 0, ptr %84, align 8, !tbaa !28
  %85 = getelementptr inbounds i8, ptr %82, i64 96
  store i32 2, ptr %85, align 8, !tbaa !25
  %86 = getelementptr inbounds i8, ptr %82, i64 104
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %86, align 8, !tbaa !27
  %87 = getelementptr inbounds i8, ptr %82, i64 120
  store i32 1, ptr %87, align 8, !tbaa !28
  %88 = getelementptr inbounds i8, ptr %82, i64 192
  store i32 3, ptr %88, align 8, !tbaa !25
  %89 = getelementptr inbounds i8, ptr %82, i64 200
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %89, align 8, !tbaa !27
  %90 = getelementptr inbounds i8, ptr %82, i64 216
  store i32 1, ptr %90, align 8, !tbaa !28
  br label %.loopexit

91:                                               ; preds = %11
  store i32 1, ptr %14, align 8, !tbaa !21
  %92 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 4, ptr %92, align 4, !tbaa !23
  %93 = getelementptr inbounds i8, ptr %0, i64 104
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  store i32 67, ptr %94, align 8, !tbaa !25
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %95, align 8, !tbaa !27
  %96 = getelementptr inbounds i8, ptr %94, i64 24
  store i32 0, ptr %96, align 8, !tbaa !28
  %97 = getelementptr inbounds i8, ptr %94, i64 96
  store i32 77, ptr %97, align 8, !tbaa !25
  %98 = getelementptr inbounds i8, ptr %94, i64 104
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %98, align 8, !tbaa !27
  %99 = getelementptr inbounds i8, ptr %94, i64 120
  store i32 0, ptr %99, align 8, !tbaa !28
  %100 = getelementptr inbounds i8, ptr %94, i64 192
  store i32 89, ptr %100, align 8, !tbaa !25
  %101 = getelementptr inbounds i8, ptr %94, i64 200
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %101, align 8, !tbaa !27
  %102 = getelementptr inbounds i8, ptr %94, i64 216
  store i32 0, ptr %102, align 8, !tbaa !28
  %103 = getelementptr inbounds i8, ptr %94, i64 288
  store i32 75, ptr %103, align 8, !tbaa !25
  %104 = getelementptr inbounds i8, ptr %94, i64 296
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %104, align 8, !tbaa !27
  %105 = getelementptr inbounds i8, ptr %94, i64 312
  store i32 0, ptr %105, align 8, !tbaa !28
  br label %.loopexit

106:                                              ; preds = %11
  store i32 1, ptr %14, align 8, !tbaa !21
  %107 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 4, ptr %107, align 4, !tbaa !23
  %108 = getelementptr inbounds i8, ptr %0, i64 104
  %109 = load ptr, ptr %108, align 8, !tbaa !24
  store i32 1, ptr %109, align 8, !tbaa !25
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %110, align 8, !tbaa !27
  %111 = getelementptr inbounds i8, ptr %109, i64 24
  store i32 0, ptr %111, align 8, !tbaa !28
  %112 = getelementptr inbounds i8, ptr %109, i64 96
  store i32 2, ptr %112, align 8, !tbaa !25
  %113 = getelementptr inbounds i8, ptr %109, i64 104
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %113, align 8, !tbaa !27
  %114 = getelementptr inbounds i8, ptr %109, i64 120
  store i32 1, ptr %114, align 8, !tbaa !28
  %115 = getelementptr inbounds i8, ptr %109, i64 192
  store i32 3, ptr %115, align 8, !tbaa !25
  %116 = getelementptr inbounds i8, ptr %109, i64 200
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %116, align 8, !tbaa !27
  %117 = getelementptr inbounds i8, ptr %109, i64 216
  store i32 1, ptr %117, align 8, !tbaa !28
  %118 = getelementptr inbounds i8, ptr %109, i64 288
  store i32 4, ptr %118, align 8, !tbaa !25
  %119 = getelementptr inbounds i8, ptr %109, i64 296
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %119, align 8, !tbaa !27
  %120 = getelementptr inbounds i8, ptr %109, i64 312
  store i32 0, ptr %120, align 8, !tbaa !28
  br label %.loopexit

121:                                              ; preds = %11
  store i32 1, ptr %13, align 4, !tbaa !20
  %122 = getelementptr inbounds i8, ptr %0, i64 328
  store i8 2, ptr %122, align 8, !tbaa !36
  %123 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 3, ptr %123, align 4, !tbaa !23
  %124 = getelementptr inbounds i8, ptr %0, i64 104
  %125 = load ptr, ptr %124, align 8, !tbaa !24
  store i32 114, ptr %125, align 8, !tbaa !25
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  store i32 1, ptr %126, align 8, !tbaa !31
  %127 = getelementptr inbounds i8, ptr %125, i64 12
  store i32 1, ptr %127, align 4, !tbaa !32
  %128 = getelementptr inbounds i8, ptr %125, i64 16
  store i32 0, ptr %128, align 8, !tbaa !33
  %129 = getelementptr inbounds i8, ptr %0, i64 340
  %130 = load i32, ptr %129, align 4, !tbaa !34
  %131 = icmp eq i32 %130, 1
  %132 = zext i1 %131 to i32
  %133 = getelementptr inbounds i8, ptr %125, i64 20
  store i32 %132, ptr %133, align 4, !tbaa !35
  %134 = getelementptr inbounds i8, ptr %125, i64 24
  store i32 %132, ptr %134, align 8, !tbaa !28
  %135 = getelementptr inbounds i8, ptr %125, i64 96
  store i32 103, ptr %135, align 8, !tbaa !25
  %136 = getelementptr inbounds i8, ptr %125, i64 104
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %136, align 8, !tbaa !27
  %137 = getelementptr inbounds i8, ptr %125, i64 120
  store i32 0, ptr %137, align 8, !tbaa !28
  %138 = getelementptr inbounds i8, ptr %125, i64 192
  store i32 98, ptr %138, align 8, !tbaa !25
  %139 = getelementptr inbounds i8, ptr %125, i64 200
  store i32 1, ptr %139, align 8, !tbaa !31
  %140 = getelementptr inbounds i8, ptr %125, i64 204
  store i32 1, ptr %140, align 4, !tbaa !32
  %141 = getelementptr inbounds i8, ptr %125, i64 208
  store i32 0, ptr %141, align 8, !tbaa !33
  %142 = getelementptr inbounds i8, ptr %125, i64 212
  store i32 %132, ptr %142, align 4, !tbaa !35
  %143 = getelementptr inbounds i8, ptr %125, i64 216
  store i32 %132, ptr %143, align 8, !tbaa !28
  br label %.loopexit

144:                                              ; preds = %11
  store i32 1, ptr %13, align 4, !tbaa !20
  %145 = getelementptr inbounds i8, ptr %0, i64 328
  store i8 2, ptr %145, align 8, !tbaa !36
  %146 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 3, ptr %146, align 4, !tbaa !23
  %147 = getelementptr inbounds i8, ptr %0, i64 104
  %148 = load ptr, ptr %147, align 8, !tbaa !24
  store i32 1, ptr %148, align 8, !tbaa !25
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %149, align 8, !tbaa !27
  %150 = getelementptr inbounds i8, ptr %148, i64 24
  store i32 0, ptr %150, align 8, !tbaa !28
  %151 = getelementptr inbounds i8, ptr %148, i64 96
  store i32 34, ptr %151, align 8, !tbaa !25
  %152 = getelementptr inbounds i8, ptr %148, i64 104
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %152, align 8, !tbaa !27
  %153 = getelementptr inbounds i8, ptr %148, i64 120
  store i32 1, ptr %153, align 8, !tbaa !28
  %154 = getelementptr inbounds i8, ptr %148, i64 192
  store i32 35, ptr %154, align 8, !tbaa !25
  %155 = getelementptr inbounds i8, ptr %148, i64 200
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %155, align 8, !tbaa !27
  %156 = getelementptr inbounds i8, ptr %148, i64 216
  store i32 1, ptr %156, align 8, !tbaa !28
  br label %.loopexit

157:                                              ; preds = %11
  %158 = load ptr, ptr %0, align 8, !tbaa !13
  %159 = getelementptr inbounds i8, ptr %158, i64 40
  store i32 11, ptr %159, align 8, !tbaa !14
  %160 = load ptr, ptr %158, align 8, !tbaa !18
  tail call void %160(ptr noundef nonnull %0) #1
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %34, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %34 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %161 = getelementptr inbounds %struct.jpeg_component_info, ptr %31, i64 %indvars.iv.epil
  %162 = trunc nuw nsw i64 %indvars.iv.epil to i32
  store i32 %162, ptr %161, align 8, !tbaa !25
  %163 = getelementptr inbounds i8, ptr %161, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %163, align 8, !tbaa !27
  %164 = getelementptr inbounds i8, ptr %161, i64 24
  store i32 0, ptr %164, align 8, !tbaa !28
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !37

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %20, %157, %144, %121, %106, %91, %79, %57, %51
  ret void
}

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 = { 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, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !7, i64 104, !8, i64 112, !8, i64 144, !8, i64 160, !8, i64 192, !8, i64 224, !8, i64 240, !8, i64 256, !10, i64 272, !7, i64 280, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !8, i64 328, !8, i64 329, !8, i64 330, !12, i64 332, !12, i64 334, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !8, i64 376, !10, i64 408, !10, i64 412, !10, i64 416, !8, i64 420, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !7, i64 480, !10, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !10, i64 576}
!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 = !{!6, !10, i64 96}
!20 = !{!6, !10, i64 324}
!21 = !{!6, !10, i64 336}
!22 = !{!6, !10, i64 56}
!23 = !{!6, !10, i64 92}
!24 = !{!6, !7, i64 104}
!25 = !{!26, !10, i64 0}
!26 = !{!"", !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, !10, i64 76, !7, i64 80, !7, i64 88}
!27 = !{!10, !10, i64 0}
!28 = !{!26, !10, i64 24}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!26, !10, i64 8}
!32 = !{!26, !10, i64 12}
!33 = !{!26, !10, i64 16}
!34 = !{!6, !10, i64 340}
!35 = !{!26, !10, i64 20}
!36 = !{!6, !8, i64 328}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.unroll.disable"}


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