; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_graphics/image_formats/jpglib (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, 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_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: 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 20, 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 14
  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 32
  store i8 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 38
  store i8 0, ptr %37, align 4, !tbaa !23
  %38 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %38, label %374 [
    i32 1, label %39
    i32 2, label %60
    i32 3, label %113
    i32 4, label %166
    i32 5, label %235
    i32 0, label %304
  ]

39:                                               ; preds = %30
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %40, i32 0, i32 32
  store i8 1, ptr %41, align 4, !tbaa !22
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %42, i32 0, i32 13
  store i32 1, ptr %43, align 4, !tbaa !24
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %44, i32 0, i32 15
  %46 = load ptr, ptr %45, align 8, !tbaa !25
  %47 = getelementptr inbounds %struct.jpeg_component_info, ptr %46, i64 0
  store ptr %47, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.jpeg_component_info, ptr %48, i32 0, i32 0
  store i32 1, ptr %49, align 8, !tbaa !26
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.jpeg_component_info, ptr %50, i32 0, i32 2
  store i32 1, ptr %51, align 8, !tbaa !28
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.jpeg_component_info, ptr %52, i32 0, i32 3
  store i32 1, ptr %53, align 4, !tbaa !29
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.jpeg_component_info, ptr %54, i32 0, i32 4
  store i32 0, ptr %55, align 8, !tbaa !30
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.jpeg_component_info, ptr %56, i32 0, i32 5
  store i32 0, ptr %57, align 4, !tbaa !31
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.jpeg_component_info, ptr %58, i32 0, i32 6
  store i32 0, ptr %59, align 8, !tbaa !32
  br label %385

60:                                               ; preds = %30
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %61, i32 0, i32 38
  store i8 1, ptr %62, align 4, !tbaa !23
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %63, i32 0, i32 13
  store i32 3, ptr %64, align 4, !tbaa !24
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %65, i32 0, i32 15
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  %68 = getelementptr inbounds %struct.jpeg_component_info, ptr %67, i64 0
  store ptr %68, ptr %5, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.jpeg_component_info, ptr %69, i32 0, i32 0
  store i32 82, ptr %70, align 8, !tbaa !26
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.jpeg_component_info, ptr %71, i32 0, i32 2
  store i32 1, ptr %72, align 8, !tbaa !28
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.jpeg_component_info, ptr %73, i32 0, i32 3
  store i32 1, ptr %74, align 4, !tbaa !29
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.jpeg_component_info, ptr %75, i32 0, i32 4
  store i32 0, ptr %76, align 8, !tbaa !30
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.jpeg_component_info, ptr %77, i32 0, i32 5
  store i32 0, ptr %78, align 4, !tbaa !31
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.jpeg_component_info, ptr %79, i32 0, i32 6
  store i32 0, ptr %80, align 8, !tbaa !32
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %81, i32 0, i32 15
  %83 = load ptr, ptr %82, align 8, !tbaa !25
  %84 = getelementptr inbounds %struct.jpeg_component_info, ptr %83, i64 1
  store ptr %84, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.jpeg_component_info, ptr %85, i32 0, i32 0
  store i32 71, ptr %86, align 8, !tbaa !26
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.jpeg_component_info, ptr %87, i32 0, i32 2
  store i32 1, ptr %88, align 8, !tbaa !28
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.jpeg_component_info, ptr %89, i32 0, i32 3
  store i32 1, ptr %90, align 4, !tbaa !29
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.jpeg_component_info, ptr %91, i32 0, i32 4
  store i32 0, ptr %92, align 8, !tbaa !30
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.jpeg_component_info, ptr %93, i32 0, i32 5
  store i32 0, ptr %94, align 4, !tbaa !31
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.jpeg_component_info, ptr %95, i32 0, i32 6
  store i32 0, ptr %96, align 8, !tbaa !32
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %97, i32 0, i32 15
  %99 = load ptr, ptr %98, align 8, !tbaa !25
  %100 = getelementptr inbounds %struct.jpeg_component_info, ptr %99, i64 2
  store ptr %100, ptr %5, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.jpeg_component_info, ptr %101, i32 0, i32 0
  store i32 66, ptr %102, align 8, !tbaa !26
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.jpeg_component_info, ptr %103, i32 0, i32 2
  store i32 1, ptr %104, align 8, !tbaa !28
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.jpeg_component_info, ptr %105, i32 0, i32 3
  store i32 1, ptr %106, align 4, !tbaa !29
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.jpeg_component_info, ptr %107, i32 0, i32 4
  store i32 0, ptr %108, align 8, !tbaa !30
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.jpeg_component_info, ptr %109, i32 0, i32 5
  store i32 0, ptr %110, align 4, !tbaa !31
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.jpeg_component_info, ptr %111, i32 0, i32 6
  store i32 0, ptr %112, align 8, !tbaa !32
  br label %385

113:                                              ; preds = %30
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %114, i32 0, i32 32
  store i8 1, ptr %115, align 4, !tbaa !22
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %116, i32 0, i32 13
  store i32 3, ptr %117, align 4, !tbaa !24
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %118, i32 0, i32 15
  %120 = load ptr, ptr %119, align 8, !tbaa !25
  %121 = getelementptr inbounds %struct.jpeg_component_info, ptr %120, i64 0
  store ptr %121, ptr %5, align 8, !tbaa !5
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.jpeg_component_info, ptr %122, i32 0, i32 0
  store i32 1, ptr %123, align 8, !tbaa !26
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.jpeg_component_info, ptr %124, i32 0, i32 2
  store i32 2, ptr %125, align 8, !tbaa !28
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.jpeg_component_info, ptr %126, i32 0, i32 3
  store i32 2, ptr %127, align 4, !tbaa !29
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.jpeg_component_info, ptr %128, i32 0, i32 4
  store i32 0, ptr %129, align 8, !tbaa !30
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.jpeg_component_info, ptr %130, i32 0, i32 5
  store i32 0, ptr %131, align 4, !tbaa !31
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.jpeg_component_info, ptr %132, i32 0, i32 6
  store i32 0, ptr %133, align 8, !tbaa !32
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %134, i32 0, i32 15
  %136 = load ptr, ptr %135, align 8, !tbaa !25
  %137 = getelementptr inbounds %struct.jpeg_component_info, ptr %136, i64 1
  store ptr %137, ptr %5, align 8, !tbaa !5
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.jpeg_component_info, ptr %138, i32 0, i32 0
  store i32 2, ptr %139, align 8, !tbaa !26
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.jpeg_component_info, ptr %140, i32 0, i32 2
  store i32 1, ptr %141, align 8, !tbaa !28
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.jpeg_component_info, ptr %142, i32 0, i32 3
  store i32 1, ptr %143, align 4, !tbaa !29
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.jpeg_component_info, ptr %144, i32 0, i32 4
  store i32 1, ptr %145, align 8, !tbaa !30
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.jpeg_component_info, ptr %146, i32 0, i32 5
  store i32 1, ptr %147, align 4, !tbaa !31
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.jpeg_component_info, ptr %148, i32 0, i32 6
  store i32 1, ptr %149, align 8, !tbaa !32
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %150, i32 0, i32 15
  %152 = load ptr, ptr %151, align 8, !tbaa !25
  %153 = getelementptr inbounds %struct.jpeg_component_info, ptr %152, i64 2
  store ptr %153, ptr %5, align 8, !tbaa !5
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.jpeg_component_info, ptr %154, i32 0, i32 0
  store i32 3, ptr %155, align 8, !tbaa !26
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.jpeg_component_info, ptr %156, i32 0, i32 2
  store i32 1, ptr %157, align 8, !tbaa !28
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.jpeg_component_info, ptr %158, i32 0, i32 3
  store i32 1, ptr %159, align 4, !tbaa !29
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.jpeg_component_info, ptr %160, i32 0, i32 4
  store i32 1, ptr %161, align 8, !tbaa !30
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.jpeg_component_info, ptr %162, i32 0, i32 5
  store i32 1, ptr %163, align 4, !tbaa !31
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.jpeg_component_info, ptr %164, i32 0, i32 6
  store i32 1, ptr %165, align 8, !tbaa !32
  br label %385

166:                                              ; preds = %30
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %167, i32 0, i32 38
  store i8 1, ptr %168, align 4, !tbaa !23
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %169, i32 0, i32 13
  store i32 4, ptr %170, align 4, !tbaa !24
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %171, i32 0, i32 15
  %173 = load ptr, ptr %172, align 8, !tbaa !25
  %174 = getelementptr inbounds %struct.jpeg_component_info, ptr %173, i64 0
  store ptr %174, ptr %5, align 8, !tbaa !5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.jpeg_component_info, ptr %175, i32 0, i32 0
  store i32 67, ptr %176, align 8, !tbaa !26
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.jpeg_component_info, ptr %177, i32 0, i32 2
  store i32 1, ptr %178, align 8, !tbaa !28
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.jpeg_component_info, ptr %179, i32 0, i32 3
  store i32 1, ptr %180, align 4, !tbaa !29
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.jpeg_component_info, ptr %181, i32 0, i32 4
  store i32 0, ptr %182, align 8, !tbaa !30
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.jpeg_component_info, ptr %183, i32 0, i32 5
  store i32 0, ptr %184, align 4, !tbaa !31
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.jpeg_component_info, ptr %185, i32 0, i32 6
  store i32 0, ptr %186, align 8, !tbaa !32
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %187, i32 0, i32 15
  %189 = load ptr, ptr %188, align 8, !tbaa !25
  %190 = getelementptr inbounds %struct.jpeg_component_info, ptr %189, i64 1
  store ptr %190, ptr %5, align 8, !tbaa !5
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.jpeg_component_info, ptr %191, i32 0, i32 0
  store i32 77, ptr %192, align 8, !tbaa !26
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.jpeg_component_info, ptr %193, i32 0, i32 2
  store i32 1, ptr %194, align 8, !tbaa !28
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.jpeg_component_info, ptr %195, i32 0, i32 3
  store i32 1, ptr %196, align 4, !tbaa !29
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.jpeg_component_info, ptr %197, i32 0, i32 4
  store i32 0, ptr %198, align 8, !tbaa !30
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.jpeg_component_info, ptr %199, i32 0, i32 5
  store i32 0, ptr %200, align 4, !tbaa !31
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.jpeg_component_info, ptr %201, i32 0, i32 6
  store i32 0, ptr %202, align 8, !tbaa !32
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %203, i32 0, i32 15
  %205 = load ptr, ptr %204, align 8, !tbaa !25
  %206 = getelementptr inbounds %struct.jpeg_component_info, ptr %205, i64 2
  store ptr %206, ptr %5, align 8, !tbaa !5
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.jpeg_component_info, ptr %207, i32 0, i32 0
  store i32 89, ptr %208, align 8, !tbaa !26
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.jpeg_component_info, ptr %209, i32 0, i32 2
  store i32 1, ptr %210, align 8, !tbaa !28
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.jpeg_component_info, ptr %211, i32 0, i32 3
  store i32 1, ptr %212, align 4, !tbaa !29
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.jpeg_component_info, ptr %213, i32 0, i32 4
  store i32 0, ptr %214, align 8, !tbaa !30
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.jpeg_component_info, ptr %215, i32 0, i32 5
  store i32 0, ptr %216, align 4, !tbaa !31
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.jpeg_component_info, ptr %217, i32 0, i32 6
  store i32 0, ptr %218, align 8, !tbaa !32
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %219, i32 0, i32 15
  %221 = load ptr, ptr %220, align 8, !tbaa !25
  %222 = getelementptr inbounds %struct.jpeg_component_info, ptr %221, i64 3
  store ptr %222, ptr %5, align 8, !tbaa !5
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.jpeg_component_info, ptr %223, i32 0, i32 0
  store i32 75, ptr %224, align 8, !tbaa !26
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.jpeg_component_info, ptr %225, i32 0, i32 2
  store i32 1, ptr %226, align 8, !tbaa !28
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.jpeg_component_info, ptr %227, i32 0, i32 3
  store i32 1, ptr %228, align 4, !tbaa !29
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.jpeg_component_info, ptr %229, i32 0, i32 4
  store i32 0, ptr %230, align 8, !tbaa !30
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.jpeg_component_info, ptr %231, i32 0, i32 5
  store i32 0, ptr %232, align 4, !tbaa !31
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.jpeg_component_info, ptr %233, i32 0, i32 6
  store i32 0, ptr %234, align 8, !tbaa !32
  br label %385

235:                                              ; preds = %30
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %236, i32 0, i32 38
  store i8 1, ptr %237, align 4, !tbaa !23
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %238, i32 0, i32 13
  store i32 4, ptr %239, align 4, !tbaa !24
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %240, i32 0, i32 15
  %242 = load ptr, ptr %241, align 8, !tbaa !25
  %243 = getelementptr inbounds %struct.jpeg_component_info, ptr %242, i64 0
  store ptr %243, ptr %5, align 8, !tbaa !5
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.jpeg_component_info, ptr %244, i32 0, i32 0
  store i32 1, ptr %245, align 8, !tbaa !26
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.jpeg_component_info, ptr %246, i32 0, i32 2
  store i32 2, ptr %247, align 8, !tbaa !28
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.jpeg_component_info, ptr %248, i32 0, i32 3
  store i32 2, ptr %249, align 4, !tbaa !29
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.jpeg_component_info, ptr %250, i32 0, i32 4
  store i32 0, ptr %251, align 8, !tbaa !30
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.jpeg_component_info, ptr %252, i32 0, i32 5
  store i32 0, ptr %253, align 4, !tbaa !31
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.jpeg_component_info, ptr %254, i32 0, i32 6
  store i32 0, ptr %255, align 8, !tbaa !32
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %256, i32 0, i32 15
  %258 = load ptr, ptr %257, align 8, !tbaa !25
  %259 = getelementptr inbounds %struct.jpeg_component_info, ptr %258, i64 1
  store ptr %259, ptr %5, align 8, !tbaa !5
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.jpeg_component_info, ptr %260, i32 0, i32 0
  store i32 2, ptr %261, align 8, !tbaa !26
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.jpeg_component_info, ptr %262, i32 0, i32 2
  store i32 1, ptr %263, align 8, !tbaa !28
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.jpeg_component_info, ptr %264, i32 0, i32 3
  store i32 1, ptr %265, align 4, !tbaa !29
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.jpeg_component_info, ptr %266, i32 0, i32 4
  store i32 1, ptr %267, align 8, !tbaa !30
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.jpeg_component_info, ptr %268, i32 0, i32 5
  store i32 1, ptr %269, align 4, !tbaa !31
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.jpeg_component_info, ptr %270, i32 0, i32 6
  store i32 1, ptr %271, align 8, !tbaa !32
  %272 = load ptr, ptr %3, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %272, i32 0, i32 15
  %274 = load ptr, ptr %273, align 8, !tbaa !25
  %275 = getelementptr inbounds %struct.jpeg_component_info, ptr %274, i64 2
  store ptr %275, ptr %5, align 8, !tbaa !5
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.jpeg_component_info, ptr %276, i32 0, i32 0
  store i32 3, ptr %277, align 8, !tbaa !26
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.jpeg_component_info, ptr %278, i32 0, i32 2
  store i32 1, ptr %279, align 8, !tbaa !28
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.jpeg_component_info, ptr %280, i32 0, i32 3
  store i32 1, ptr %281, align 4, !tbaa !29
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.jpeg_component_info, ptr %282, i32 0, i32 4
  store i32 1, ptr %283, align 8, !tbaa !30
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.jpeg_component_info, ptr %284, i32 0, i32 5
  store i32 1, ptr %285, align 4, !tbaa !31
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.jpeg_component_info, ptr %286, i32 0, i32 6
  store i32 1, ptr %287, align 8, !tbaa !32
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %288, i32 0, i32 15
  %290 = load ptr, ptr %289, align 8, !tbaa !25
  %291 = getelementptr inbounds %struct.jpeg_component_info, ptr %290, i64 3
  store ptr %291, ptr %5, align 8, !tbaa !5
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.jpeg_component_info, ptr %292, i32 0, i32 0
  store i32 4, ptr %293, align 8, !tbaa !26
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.jpeg_component_info, ptr %294, i32 0, i32 2
  store i32 2, ptr %295, align 8, !tbaa !28
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.jpeg_component_info, ptr %296, i32 0, i32 3
  store i32 2, ptr %297, align 4, !tbaa !29
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.jpeg_component_info, ptr %298, i32 0, i32 4
  store i32 0, ptr %299, align 8, !tbaa !30
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.jpeg_component_info, ptr %300, i32 0, i32 5
  store i32 0, ptr %301, align 4, !tbaa !31
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.jpeg_component_info, ptr %302, i32 0, i32 6
  store i32 0, ptr %303, align 8, !tbaa !32
  br label %385

304:                                              ; preds = %30
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %305, i32 0, i32 9
  %307 = load i32, ptr %306, align 8, !tbaa !33
  %308 = load ptr, ptr %3, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %308, i32 0, i32 13
  store i32 %307, ptr %309, align 4, !tbaa !24
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %310, i32 0, i32 13
  %312 = load i32, ptr %311, align 4, !tbaa !24
  %313 = icmp slt i32 %312, 1
  br i1 %313, label %319, label %314

314:                                              ; preds = %304
  %315 = load ptr, ptr %3, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %315, i32 0, i32 13
  %317 = load i32, ptr %316, align 4, !tbaa !24
  %318 = icmp sgt i32 %317, 10
  br i1 %318, label %319, label %343

319:                                              ; preds = %314, %304
  %320 = load ptr, ptr %3, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %320, i32 0, i32 0
  %322 = load ptr, ptr %321, align 8, !tbaa !15
  %323 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %322, i32 0, i32 5
  store i32 26, ptr %323, align 8, !tbaa !16
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %324, i32 0, i32 13
  %326 = load i32, ptr %325, align 4, !tbaa !24
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %327, i32 0, i32 0
  %329 = load ptr, ptr %328, align 8, !tbaa !15
  %330 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %329, i32 0, i32 6
  %331 = getelementptr inbounds [8 x i32], ptr %330, i64 0, i64 0
  store i32 %326, ptr %331, align 4, !tbaa !19
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %332, i32 0, i32 0
  %334 = load ptr, ptr %333, align 8, !tbaa !15
  %335 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %334, i32 0, i32 6
  %336 = getelementptr inbounds [8 x i32], ptr %335, i64 0, i64 1
  store i32 10, ptr %336, align 4, !tbaa !19
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %337, i32 0, i32 0
  %339 = load ptr, ptr %338, align 8, !tbaa !15
  %340 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %339, i32 0, i32 0
  %341 = load ptr, ptr %340, align 8, !tbaa !20
  %342 = load ptr, ptr %3, align 8, !tbaa !5
  call void %341(ptr noundef %342)
  br label %343

343:                                              ; preds = %319, %314
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %344

344:                                              ; preds = %370, %343
  %345 = load i32, ptr %6, align 4, !tbaa !9
  %346 = load ptr, ptr %3, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %346, i32 0, i32 13
  %348 = load i32, ptr %347, align 4, !tbaa !24
  %349 = icmp slt i32 %345, %348
  br i1 %349, label %350, label %373

350:                                              ; preds = %344
  %351 = load ptr, ptr %3, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %351, i32 0, i32 15
  %353 = load ptr, ptr %352, align 8, !tbaa !25
  %354 = load i32, ptr %6, align 4, !tbaa !9
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds %struct.jpeg_component_info, ptr %353, i64 %355
  store ptr %356, ptr %5, align 8, !tbaa !5
  %357 = load i32, ptr %6, align 4, !tbaa !9
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.jpeg_component_info, ptr %358, i32 0, i32 0
  store i32 %357, ptr %359, align 8, !tbaa !26
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.jpeg_component_info, ptr %360, i32 0, i32 2
  store i32 1, ptr %361, align 8, !tbaa !28
  %362 = load ptr, ptr %5, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.jpeg_component_info, ptr %362, i32 0, i32 3
  store i32 1, ptr %363, align 4, !tbaa !29
  %364 = load ptr, ptr %5, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.jpeg_component_info, ptr %364, i32 0, i32 4
  store i32 0, ptr %365, align 8, !tbaa !30
  %366 = load ptr, ptr %5, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.jpeg_component_info, ptr %366, i32 0, i32 5
  store i32 0, ptr %367, align 4, !tbaa !31
  %368 = load ptr, ptr %5, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.jpeg_component_info, ptr %368, i32 0, i32 6
  store i32 0, ptr %369, align 8, !tbaa !32
  br label %370

370:                                              ; preds = %350
  %371 = load i32, ptr %6, align 4, !tbaa !9
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %6, align 4, !tbaa !9
  br label %344, !llvm.loop !34

373:                                              ; preds = %344
  br label %385

374:                                              ; preds = %30
  %375 = load ptr, ptr %3, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %375, i32 0, i32 0
  %377 = load ptr, ptr %376, align 8, !tbaa !15
  %378 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %377, i32 0, i32 5
  store i32 10, ptr %378, align 8, !tbaa !16
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %379, i32 0, i32 0
  %381 = load ptr, ptr %380, align 8, !tbaa !15
  %382 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %381, i32 0, i32 0
  %383 = load ptr, ptr %382, align 8, !tbaa !20
  %384 = load ptr, ptr %3, align 8, !tbaa !5
  call void %383(ptr noundef %384)
  br label %385

385:                                              ; preds = %374, %373, %235, %166, %113, %60, %39
  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, !7, 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, !6, i64 88, !7, i64 96, !7, i64 128, !7, i64 160, !7, i64 192, !7, i64 208, !7, i64 224, !10, i64 240, !6, i64 248, !7, i64 256, !7, i64 257, !7, i64 258, !7, i64 259, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !7, i64 276, !7, i64 277, !7, i64 278, !7, i64 279, !14, i64 280, !14, i64 282, !7, i64 284, !10, i64 288, !7, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !7, i64 312, !10, i64 344, !10, i64 348, !10, i64 352, !7, i64 356, !10, i64 396, !10, i64 400, !10, i64 404, !10, 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, !10, i64 496}
!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 80}
!22 = !{!12, !7, i64 276}
!23 = !{!12, !7, i64 284}
!24 = !{!12, !10, i64 76}
!25 = !{!12, !6, i64 88}
!26 = !{!27, !10, i64 0}
!27 = !{!"", !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, !7, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !6, i64 80, !6, i64 88}
!28 = !{!27, !10, i64 8}
!29 = !{!27, !10, i64 12}
!30 = !{!27, !10, i64 16}
!31 = !{!27, !10, i64 20}
!32 = !{!27, !10, i64 24}
!33 = !{!12, !10, i64 56}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; 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, i8, 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 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 %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 80
  store i32 %1, ptr %12, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %0, i64 276
  store i8 0, ptr %13, align 4, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %0, i64 284
  store i8 0, ptr %14, align 4, !tbaa !21
  switch i32 %1, label %111 [
    i32 1, label %15
    i32 2, label %21
    i32 3, label %33
    i32 4, label %45
    i32 5, label %60
    i32 0, label %75
  ]

15:                                               ; preds = %11
  store i8 1, ptr %13, align 4, !tbaa !20
  %16 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 1, ptr %16, align 4, !tbaa !22
  %17 = getelementptr inbounds i8, ptr %0, i64 88
  %18 = load ptr, ptr %17, align 8, !tbaa !23
  store i32 1, ptr %18, align 8, !tbaa !24
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %19, align 8, !tbaa !26
  %20 = getelementptr inbounds i8, ptr %18, i64 24
  store i32 0, ptr %20, align 8, !tbaa !27
  br label %.loopexit

21:                                               ; preds = %11
  store i8 1, ptr %14, align 4, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 3, ptr %22, align 4, !tbaa !22
  %23 = getelementptr inbounds i8, ptr %0, i64 88
  %24 = load ptr, ptr %23, align 8, !tbaa !23
  store i32 82, ptr %24, align 8, !tbaa !24
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %25, align 8, !tbaa !26
  %26 = getelementptr inbounds i8, ptr %24, i64 24
  store i32 0, ptr %26, align 8, !tbaa !27
  %27 = getelementptr inbounds i8, ptr %24, i64 96
  store i32 71, ptr %27, align 8, !tbaa !24
  %28 = getelementptr inbounds i8, ptr %24, i64 104
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %28, align 8, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %24, i64 120
  store i32 0, ptr %29, align 8, !tbaa !27
  %30 = getelementptr inbounds i8, ptr %24, i64 192
  store i32 66, ptr %30, align 8, !tbaa !24
  %31 = getelementptr inbounds i8, ptr %24, i64 200
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %31, align 8, !tbaa !26
  %32 = getelementptr inbounds i8, ptr %24, i64 216
  store i32 0, ptr %32, align 8, !tbaa !27
  br label %.loopexit

33:                                               ; preds = %11
  store i8 1, ptr %13, align 4, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 3, ptr %34, align 4, !tbaa !22
  %35 = getelementptr inbounds i8, ptr %0, i64 88
  %36 = load ptr, ptr %35, align 8, !tbaa !23
  store i32 1, ptr %36, align 8, !tbaa !24
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %37, align 8, !tbaa !26
  %38 = getelementptr inbounds i8, ptr %36, i64 24
  store i32 0, ptr %38, align 8, !tbaa !27
  %39 = getelementptr inbounds i8, ptr %36, i64 96
  store i32 2, ptr %39, align 8, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %36, i64 104
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %40, align 8, !tbaa !26
  %41 = getelementptr inbounds i8, ptr %36, i64 120
  store i32 1, ptr %41, align 8, !tbaa !27
  %42 = getelementptr inbounds i8, ptr %36, i64 192
  store i32 3, ptr %42, align 8, !tbaa !24
  %43 = getelementptr inbounds i8, ptr %36, i64 200
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %43, align 8, !tbaa !26
  %44 = getelementptr inbounds i8, ptr %36, i64 216
  store i32 1, ptr %44, align 8, !tbaa !27
  br label %.loopexit

45:                                               ; preds = %11
  store i8 1, ptr %14, align 4, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 4, ptr %46, align 4, !tbaa !22
  %47 = getelementptr inbounds i8, ptr %0, i64 88
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  store i32 67, ptr %48, align 8, !tbaa !24
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %49, align 8, !tbaa !26
  %50 = getelementptr inbounds i8, ptr %48, i64 24
  store i32 0, ptr %50, align 8, !tbaa !27
  %51 = getelementptr inbounds i8, ptr %48, i64 96
  store i32 77, ptr %51, align 8, !tbaa !24
  %52 = getelementptr inbounds i8, ptr %48, i64 104
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %52, align 8, !tbaa !26
  %53 = getelementptr inbounds i8, ptr %48, i64 120
  store i32 0, ptr %53, align 8, !tbaa !27
  %54 = getelementptr inbounds i8, ptr %48, i64 192
  store i32 89, ptr %54, align 8, !tbaa !24
  %55 = getelementptr inbounds i8, ptr %48, i64 200
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %55, align 8, !tbaa !26
  %56 = getelementptr inbounds i8, ptr %48, i64 216
  store i32 0, ptr %56, align 8, !tbaa !27
  %57 = getelementptr inbounds i8, ptr %48, i64 288
  store i32 75, ptr %57, align 8, !tbaa !24
  %58 = getelementptr inbounds i8, ptr %48, i64 296
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %58, align 8, !tbaa !26
  %59 = getelementptr inbounds i8, ptr %48, i64 312
  store i32 0, ptr %59, align 8, !tbaa !27
  br label %.loopexit

60:                                               ; preds = %11
  store i8 1, ptr %14, align 4, !tbaa !21
  %61 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 4, ptr %61, align 4, !tbaa !22
  %62 = getelementptr inbounds i8, ptr %0, i64 88
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  store i32 1, ptr %63, align 8, !tbaa !24
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %64, align 8, !tbaa !26
  %65 = getelementptr inbounds i8, ptr %63, i64 24
  store i32 0, ptr %65, align 8, !tbaa !27
  %66 = getelementptr inbounds i8, ptr %63, i64 96
  store i32 2, ptr %66, align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %63, i64 104
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %67, align 8, !tbaa !26
  %68 = getelementptr inbounds i8, ptr %63, i64 120
  store i32 1, ptr %68, align 8, !tbaa !27
  %69 = getelementptr inbounds i8, ptr %63, i64 192
  store i32 3, ptr %69, align 8, !tbaa !24
  %70 = getelementptr inbounds i8, ptr %63, i64 200
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %70, align 8, !tbaa !26
  %71 = getelementptr inbounds i8, ptr %63, i64 216
  store i32 1, ptr %71, align 8, !tbaa !27
  %72 = getelementptr inbounds i8, ptr %63, i64 288
  store i32 4, ptr %72, align 8, !tbaa !24
  %73 = getelementptr inbounds i8, ptr %63, i64 296
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %73, align 8, !tbaa !26
  %74 = getelementptr inbounds i8, ptr %63, i64 312
  store i32 0, ptr %74, align 8, !tbaa !27
  br label %.loopexit

75:                                               ; preds = %11
  %76 = getelementptr inbounds i8, ptr %0, i64 56
  %77 = load i32, ptr %76, align 8, !tbaa !28
  %78 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %77, ptr %78, align 4, !tbaa !22
  %79 = add i32 %77, -11
  %or.cond = icmp ult i32 %79, -10
  br i1 %or.cond, label %80, label %.lr.ph

80:                                               ; preds = %75
  %81 = load ptr, ptr %0, align 8, !tbaa !13
  %82 = getelementptr inbounds i8, ptr %81, i64 40
  store i32 26, ptr %82, align 8, !tbaa !14
  %83 = getelementptr inbounds i8, ptr %81, i64 44
  store i32 %77, ptr %83, align 4, !tbaa !17
  %84 = load ptr, ptr %0, align 8, !tbaa !13
  %85 = getelementptr inbounds i8, ptr %84, i64 48
  store i32 10, ptr %85, align 4, !tbaa !17
  %86 = load ptr, ptr %0, align 8, !tbaa !13
  %87 = load ptr, ptr %86, align 8, !tbaa !18
  tail call void %87(ptr noundef nonnull %0) #1
  %.pre = load i32, ptr %78, align 4, !tbaa !22
  %88 = icmp sgt i32 %.pre, 0
  br i1 %88, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %75, %80
  %89 = phi i32 [ %.pre, %80 ], [ %77, %75 ]
  %90 = getelementptr inbounds i8, ptr %0, i64 88
  %91 = load ptr, ptr %90, align 8, !tbaa !23
  %wide.trip.count = zext nneg i32 %89 to i64
  %92 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 3
  %93 = icmp ult i64 %92, 3
  br i1 %93, 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 %94

94:                                               ; preds = %94, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %94 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %94 ]
  %95 = getelementptr inbounds %struct.jpeg_component_info, ptr %91, i64 %indvars.iv
  %96 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %96, ptr %95, align 8, !tbaa !24
  %97 = getelementptr inbounds i8, ptr %95, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %97, align 8, !tbaa !26
  %98 = getelementptr inbounds i8, ptr %95, i64 24
  store i32 0, ptr %98, align 8, !tbaa !27
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %99 = getelementptr inbounds %struct.jpeg_component_info, ptr %91, i64 %indvars.iv.next
  %100 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %100, ptr %99, align 8, !tbaa !24
  %101 = getelementptr inbounds i8, ptr %99, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %101, align 8, !tbaa !26
  %102 = getelementptr inbounds i8, ptr %99, i64 24
  store i32 0, ptr %102, align 8, !tbaa !27
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %103 = getelementptr inbounds %struct.jpeg_component_info, ptr %91, i64 %indvars.iv.next.1
  %104 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  store i32 %104, ptr %103, align 8, !tbaa !24
  %105 = getelementptr inbounds i8, ptr %103, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %105, align 8, !tbaa !26
  %106 = getelementptr inbounds i8, ptr %103, i64 24
  store i32 0, ptr %106, align 8, !tbaa !27
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %107 = getelementptr inbounds %struct.jpeg_component_info, ptr %91, i64 %indvars.iv.next.2
  %108 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  store i32 %108, ptr %107, align 8, !tbaa !24
  %109 = getelementptr inbounds i8, ptr %107, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %109, align 8, !tbaa !26
  %110 = getelementptr inbounds i8, ptr %107, i64 24
  store i32 0, ptr %110, align 8, !tbaa !27
  %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 %94, !llvm.loop !29

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

.loopexit.loopexit.unr-lcssa:                     ; preds = %94, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %94 ]
  %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 ]
  %115 = getelementptr inbounds %struct.jpeg_component_info, ptr %91, i64 %indvars.iv.epil
  %116 = trunc nuw nsw i64 %indvars.iv.epil to i32
  store i32 %116, ptr %115, align 8, !tbaa !24
  %117 = getelementptr inbounds i8, ptr %115, i64 8
  store <4 x i32> <i32 1, i32 1, i32 0, i32 0>, ptr %117, align 8, !tbaa !26
  %118 = getelementptr inbounds i8, ptr %115, i64 24
  store i32 0, ptr %118, align 8, !tbaa !27
  %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 !31

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %80, %111, %60, %45, %33, %21, %15
  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, !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 = !{!6, !10, i64 80}
!20 = !{!6, !8, i64 276}
!21 = !{!6, !8, i64 284}
!22 = !{!6, !10, i64 76}
!23 = !{!6, !7, i64 88}
!24 = !{!25, !10, i64 0}
!25 = !{!"", !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}
!26 = !{!10, !10, i64 0}
!27 = !{!25, !10, i64 24}
!28 = !{!6, !10, i64 56}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !32}
!32 = !{!"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