; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_graphics/image_formats/jpglib (dimensions)

; 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_decompress_struct = type { ptr, ptr, ptr, ptr, i8, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, i8, i8, i32, i8, i8, i8, i32, i8, i32, i8, i8, i8, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], i32, ptr, i8, i8, [16 x i8], [16 x i8], [16 x i8], i32, i8, i8, i8, i8, i16, i16, i8, i8, i8, ptr, i32, i32, i32, i32, ptr, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.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: nounwind uwtable
define dso_local void @jpeg_calc_output_dimensions(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %6, i32 0, i32 5
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %9 = icmp ne i32 %8, 202
  br i1 %9, label %10, label %29

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

29:                                               ; preds = %10, %1
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %30, i32 0, i32 12
  %32 = load i32, ptr %31, align 4, !tbaa !20
  %33 = mul i32 %32, 8
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %34, i32 0, i32 13
  %36 = load i32, ptr %35, align 8, !tbaa !21
  %37 = icmp ule i32 %33, %36
  br i1 %37, label %38, label %57

38:                                               ; preds = %29
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %39, i32 0, i32 7
  %41 = load i32, ptr %40, align 8, !tbaa !22
  %42 = zext i32 %41 to i64
  %43 = call i64 @jdiv_round_up(i64 noundef %42, i64 noundef 8)
  %44 = trunc i64 %43 to i32
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %45, i32 0, i32 27
  store i32 %44, ptr %46, align 4, !tbaa !23
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %47, i32 0, i32 8
  %49 = load i32, ptr %48, align 4, !tbaa !24
  %50 = zext i32 %49 to i64
  %51 = call i64 @jdiv_round_up(i64 noundef %50, i64 noundef 8)
  %52 = trunc i64 %51 to i32
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %53, i32 0, i32 28
  store i32 %52, ptr %54, align 8, !tbaa !25
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %55, i32 0, i32 63
  store i32 1, ptr %56, align 8, !tbaa !26
  br label %128

57:                                               ; preds = %29
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %58, i32 0, i32 12
  %60 = load i32, ptr %59, align 4, !tbaa !20
  %61 = mul i32 %60, 4
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %62, i32 0, i32 13
  %64 = load i32, ptr %63, align 8, !tbaa !21
  %65 = icmp ule i32 %61, %64
  br i1 %65, label %66, label %85

66:                                               ; preds = %57
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %67, i32 0, i32 7
  %69 = load i32, ptr %68, align 8, !tbaa !22
  %70 = zext i32 %69 to i64
  %71 = call i64 @jdiv_round_up(i64 noundef %70, i64 noundef 4)
  %72 = trunc i64 %71 to i32
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %73, i32 0, i32 27
  store i32 %72, ptr %74, align 4, !tbaa !23
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %75, i32 0, i32 8
  %77 = load i32, ptr %76, align 4, !tbaa !24
  %78 = zext i32 %77 to i64
  %79 = call i64 @jdiv_round_up(i64 noundef %78, i64 noundef 4)
  %80 = trunc i64 %79 to i32
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %81, i32 0, i32 28
  store i32 %80, ptr %82, align 8, !tbaa !25
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %83, i32 0, i32 63
  store i32 2, ptr %84, align 8, !tbaa !26
  br label %127

85:                                               ; preds = %57
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %86, i32 0, i32 12
  %88 = load i32, ptr %87, align 4, !tbaa !20
  %89 = mul i32 %88, 2
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %90, i32 0, i32 13
  %92 = load i32, ptr %91, align 8, !tbaa !21
  %93 = icmp ule i32 %89, %92
  br i1 %93, label %94, label %113

94:                                               ; preds = %85
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %95, i32 0, i32 7
  %97 = load i32, ptr %96, align 8, !tbaa !22
  %98 = zext i32 %97 to i64
  %99 = call i64 @jdiv_round_up(i64 noundef %98, i64 noundef 2)
  %100 = trunc i64 %99 to i32
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %101, i32 0, i32 27
  store i32 %100, ptr %102, align 4, !tbaa !23
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %103, i32 0, i32 8
  %105 = load i32, ptr %104, align 4, !tbaa !24
  %106 = zext i32 %105 to i64
  %107 = call i64 @jdiv_round_up(i64 noundef %106, i64 noundef 2)
  %108 = trunc i64 %107 to i32
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %109, i32 0, i32 28
  store i32 %108, ptr %110, align 8, !tbaa !25
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %111, i32 0, i32 63
  store i32 4, ptr %112, align 8, !tbaa !26
  br label %126

113:                                              ; preds = %85
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %114, i32 0, i32 7
  %116 = load i32, ptr %115, align 8, !tbaa !22
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %117, i32 0, i32 27
  store i32 %116, ptr %118, align 4, !tbaa !23
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %119, i32 0, i32 8
  %121 = load i32, ptr %120, align 4, !tbaa !24
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %122, i32 0, i32 28
  store i32 %121, ptr %123, align 8, !tbaa !25
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %124, i32 0, i32 63
  store i32 8, ptr %125, align 8, !tbaa !26
  br label %126

126:                                              ; preds = %113, %94
  br label %127

127:                                              ; preds = %126, %66
  br label %128

128:                                              ; preds = %127, %38
  store i32 0, ptr %3, align 4, !tbaa !27
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %129, i32 0, i32 44
  %131 = load ptr, ptr %130, align 8, !tbaa !28
  store ptr %131, ptr %4, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %184, %128
  %133 = load i32, ptr %3, align 4, !tbaa !27
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %134, i32 0, i32 9
  %136 = load i32, ptr %135, align 8, !tbaa !29
  %137 = icmp slt i32 %133, %136
  br i1 %137, label %138, label %189

138:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %139, i32 0, i32 63
  %141 = load i32, ptr %140, align 8, !tbaa !26
  store i32 %141, ptr %5, align 4, !tbaa !27
  br label %142

142:                                              ; preds = %177, %138
  %143 = load i32, ptr %5, align 4, !tbaa !27
  %144 = icmp slt i32 %143, 8
  br i1 %144, label %145, label %175

145:                                              ; preds = %142
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.jpeg_component_info, ptr %146, i32 0, i32 2
  %148 = load i32, ptr %147, align 8, !tbaa !30
  %149 = load i32, ptr %5, align 4, !tbaa !27
  %150 = mul nsw i32 %148, %149
  %151 = mul nsw i32 %150, 2
  %152 = load ptr, ptr %2, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %152, i32 0, i32 61
  %154 = load i32, ptr %153, align 8, !tbaa !32
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %155, i32 0, i32 63
  %157 = load i32, ptr %156, align 8, !tbaa !26
  %158 = mul nsw i32 %154, %157
  %159 = icmp sle i32 %151, %158
  br i1 %159, label %160, label %175

160:                                              ; preds = %145
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.jpeg_component_info, ptr %161, i32 0, i32 3
  %163 = load i32, ptr %162, align 4, !tbaa !33
  %164 = load i32, ptr %5, align 4, !tbaa !27
  %165 = mul nsw i32 %163, %164
  %166 = mul nsw i32 %165, 2
  %167 = load ptr, ptr %2, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %167, i32 0, i32 62
  %169 = load i32, ptr %168, align 4, !tbaa !34
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %170, i32 0, i32 63
  %172 = load i32, ptr %171, align 8, !tbaa !26
  %173 = mul nsw i32 %169, %172
  %174 = icmp sle i32 %166, %173
  br label %175

175:                                              ; preds = %160, %145, %142
  %176 = phi i1 [ false, %145 ], [ false, %142 ], [ %174, %160 ]
  br i1 %176, label %177, label %180

177:                                              ; preds = %175
  %178 = load i32, ptr %5, align 4, !tbaa !27
  %179 = mul nsw i32 %178, 2
  store i32 %179, ptr %5, align 4, !tbaa !27
  br label %142, !llvm.loop !35

180:                                              ; preds = %175
  %181 = load i32, ptr %5, align 4, !tbaa !27
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.jpeg_component_info, ptr %182, i32 0, i32 9
  store i32 %181, ptr %183, align 4, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %184

184:                                              ; preds = %180
  %185 = load i32, ptr %3, align 4, !tbaa !27
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %3, align 4, !tbaa !27
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.jpeg_component_info, ptr %187, i32 1
  store ptr %188, ptr %4, align 8, !tbaa !5
  br label %132, !llvm.loop !38

189:                                              ; preds = %132
  store i32 0, ptr %3, align 4, !tbaa !27
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %190, i32 0, i32 44
  %192 = load ptr, ptr %191, align 8, !tbaa !28
  store ptr %192, ptr %4, align 8, !tbaa !5
  br label %193

193:                                              ; preds = %244, %189
  %194 = load i32, ptr %3, align 4, !tbaa !27
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %195, i32 0, i32 9
  %197 = load i32, ptr %196, align 8, !tbaa !29
  %198 = icmp slt i32 %194, %197
  br i1 %198, label %199, label %249

199:                                              ; preds = %193
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %200, i32 0, i32 7
  %202 = load i32, ptr %201, align 8, !tbaa !22
  %203 = zext i32 %202 to i64
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.jpeg_component_info, ptr %204, i32 0, i32 2
  %206 = load i32, ptr %205, align 8, !tbaa !30
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.jpeg_component_info, ptr %207, i32 0, i32 9
  %209 = load i32, ptr %208, align 4, !tbaa !37
  %210 = mul nsw i32 %206, %209
  %211 = sext i32 %210 to i64
  %212 = mul nsw i64 %203, %211
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %213, i32 0, i32 61
  %215 = load i32, ptr %214, align 8, !tbaa !32
  %216 = mul nsw i32 %215, 8
  %217 = sext i32 %216 to i64
  %218 = call i64 @jdiv_round_up(i64 noundef %212, i64 noundef %217)
  %219 = trunc i64 %218 to i32
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.jpeg_component_info, ptr %220, i32 0, i32 10
  store i32 %219, ptr %221, align 8, !tbaa !39
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %222, i32 0, i32 8
  %224 = load i32, ptr %223, align 4, !tbaa !24
  %225 = zext i32 %224 to i64
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.jpeg_component_info, ptr %226, i32 0, i32 3
  %228 = load i32, ptr %227, align 4, !tbaa !33
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.jpeg_component_info, ptr %229, i32 0, i32 9
  %231 = load i32, ptr %230, align 4, !tbaa !37
  %232 = mul nsw i32 %228, %231
  %233 = sext i32 %232 to i64
  %234 = mul nsw i64 %225, %233
  %235 = load ptr, ptr %2, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %235, i32 0, i32 62
  %237 = load i32, ptr %236, align 4, !tbaa !34
  %238 = mul nsw i32 %237, 8
  %239 = sext i32 %238 to i64
  %240 = call i64 @jdiv_round_up(i64 noundef %234, i64 noundef %239)
  %241 = trunc i64 %240 to i32
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.jpeg_component_info, ptr %242, i32 0, i32 11
  store i32 %241, ptr %243, align 4, !tbaa !40
  br label %244

244:                                              ; preds = %199
  %245 = load i32, ptr %3, align 4, !tbaa !27
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %3, align 4, !tbaa !27
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.jpeg_component_info, ptr %247, i32 1
  store ptr %248, ptr %4, align 8, !tbaa !5
  br label %193, !llvm.loop !41

249:                                              ; preds = %193
  %250 = load ptr, ptr %2, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %250, i32 0, i32 11
  %252 = load i32, ptr %251, align 8, !tbaa !42
  switch i32 %252, label %262 [
    i32 1, label %253
    i32 2, label %256
    i32 3, label %256
    i32 4, label %259
    i32 5, label %259
  ]

253:                                              ; preds = %249
  %254 = load ptr, ptr %2, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %254, i32 0, i32 29
  store i32 1, ptr %255, align 4, !tbaa !43
  br label %268

256:                                              ; preds = %249, %249
  %257 = load ptr, ptr %2, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %257, i32 0, i32 29
  store i32 3, ptr %258, align 4, !tbaa !43
  br label %268

259:                                              ; preds = %249, %249
  %260 = load ptr, ptr %2, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %260, i32 0, i32 29
  store i32 4, ptr %261, align 4, !tbaa !43
  br label %268

262:                                              ; preds = %249
  %263 = load ptr, ptr %2, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %263, i32 0, i32 9
  %265 = load i32, ptr %264, align 8, !tbaa !29
  %266 = load ptr, ptr %2, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %266, i32 0, i32 29
  store i32 %265, ptr %267, align 4, !tbaa !43
  br label %268

268:                                              ; preds = %262, %259, %256, %253
  %269 = load ptr, ptr %2, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %269, i32 0, i32 20
  %271 = load i8, ptr %270, align 2, !tbaa !44
  %272 = zext i8 %271 to i32
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %275

274:                                              ; preds = %268
  br label %279

275:                                              ; preds = %268
  %276 = load ptr, ptr %2, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %276, i32 0, i32 29
  %278 = load i32, ptr %277, align 4, !tbaa !43
  br label %279

279:                                              ; preds = %275, %274
  %280 = phi i32 [ 1, %274 ], [ %278, %275 ]
  %281 = load ptr, ptr %2, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %281, i32 0, i32 30
  store i32 %280, ptr %282, align 8, !tbaa !45
  %283 = load ptr, ptr %2, align 8, !tbaa !5
  %284 = call zeroext i8 @use_merged_upsample(ptr noundef %283)
  %285 = icmp ne i8 %284, 0
  br i1 %285, label %286, label %292

286:                                              ; preds = %279
  %287 = load ptr, ptr %2, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %287, i32 0, i32 62
  %289 = load i32, ptr %288, align 4, !tbaa !34
  %290 = load ptr, ptr %2, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %290, i32 0, i32 31
  store i32 %289, ptr %291, align 4, !tbaa !46
  br label %295

292:                                              ; preds = %279
  %293 = load ptr, ptr %2, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %293, i32 0, i32 31
  store i32 1, ptr %294, align 4, !tbaa !46
  br label %295

295:                                              ; preds = %292, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

declare i64 @jdiv_round_up(i64 noundef, i64 noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @use_merged_upsample(ptr noundef) #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 36}
!10 = !{!"jpeg_decompress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !12, i64 80, !7, i64 88, !7, i64 89, !11, i64 92, !7, i64 96, !7, i64 97, !7, i64 98, !11, i64 100, !7, i64 104, !11, i64 108, !7, i64 112, !7, i64 113, !7, i64 114, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !6, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !6, i64 176, !7, i64 184, !7, i64 216, !7, i64 248, !11, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !7, i64 298, !7, i64 314, !7, i64 330, !11, i64 348, !7, i64 352, !7, i64 353, !7, i64 354, !7, i64 355, !13, i64 356, !13, i64 358, !7, i64 360, !7, i64 361, !7, i64 362, !6, i64 368, !11, i64 376, !11, i64 380, !11, i64 384, !11, i64 388, !6, i64 392, !11, i64 400, !7, i64 408, !11, i64 440, !11, i64 444, !11, i64 448, !7, i64 452, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !6, i64 0}
!15 = !{!16, !11, i64 40}
!16 = !{!"jpeg_error_mgr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !7, i64 44, !11, i64 124, !17, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 164}
!17 = !{!"long", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!16, !6, i64 0}
!20 = !{!10, !11, i64 68}
!21 = !{!10, !11, i64 72}
!22 = !{!10, !11, i64 48}
!23 = !{!10, !11, i64 116}
!24 = !{!10, !11, i64 52}
!25 = !{!10, !11, i64 120}
!26 = !{!10, !11, i64 384}
!27 = !{!11, !11, i64 0}
!28 = !{!10, !6, i64 288}
!29 = !{!10, !11, i64 56}
!30 = !{!31, !11, i64 8}
!31 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !7, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !6, i64 80, !6, i64 88}
!32 = !{!10, !11, i64 376}
!33 = !{!31, !11, i64 12}
!34 = !{!10, !11, i64 380}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!31, !11, i64 36}
!38 = distinct !{!38, !36}
!39 = !{!31, !11, i64 40}
!40 = !{!31, !11, i64 44}
!41 = distinct !{!41, !36}
!42 = !{!10, !11, i64 64}
!43 = !{!10, !11, i64 124}
!44 = !{!10, !7, i64 98}
!45 = !{!10, !11, i64 128}
!46 = !{!10, !11, i64 132}


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

@switch.table.jpeg_calc_output_dimensions = private unnamed_addr constant [5 x i32] [i32 1, i32 3, i32 3, i32 4, i32 4], align 4

; Function Attrs: nounwind uwtable
define dso_local void @jpeg_calc_output_dimensions(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 36
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %3, 202
  br i1 %.not, label %10, label %4

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

10:                                               ; preds = %4, %1
  %11 = getelementptr inbounds i8, ptr %0, i64 68
  %12 = load i32, ptr %11, align 4, !tbaa !19
  %13 = shl i32 %12, 3
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  %15 = load i32, ptr %14, align 8, !tbaa !20
  %.not82 = icmp ugt i32 %13, %15
  br i1 %.not82, label %16, label %.sink.split

16:                                               ; preds = %10
  %17 = shl i32 %12, 2
  %.not83 = icmp ugt i32 %17, %15
  br i1 %.not83, label %18, label %.sink.split

18:                                               ; preds = %16
  %19 = shl i32 %12, 1
  %.not84 = icmp ugt i32 %19, %15
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = load i32, ptr %20, align 8, !tbaa !21
  br i1 %.not84, label %.thread, label %24

.sink.split:                                      ; preds = %16, %10
  %.sink121.ph = phi i64 [ 8, %10 ], [ 4, %16 ]
  %.sink108.ph = phi i32 [ 1, %10 ], [ 2, %16 ]
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %23 = load i32, ptr %22, align 8, !tbaa !21
  br label %24

24:                                               ; preds = %.sink.split, %18
  %.sink122 = phi i32 [ %21, %18 ], [ %23, %.sink.split ]
  %.sink121 = phi i64 [ 2, %18 ], [ %.sink121.ph, %.sink.split ]
  %.sink108 = phi i32 [ 4, %18 ], [ %.sink108.ph, %.sink.split ]
  %25 = zext i32 %.sink122 to i64
  %26 = tail call i64 @jdiv_round_up(i64 noundef %25, i64 noundef %.sink121) #2
  %27 = trunc i64 %26 to i32
  %28 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %27, ptr %28, align 4, !tbaa !22
  %29 = getelementptr inbounds i8, ptr %0, i64 52
  %30 = load i32, ptr %29, align 4, !tbaa !23
  %31 = zext i32 %30 to i64
  %32 = tail call i64 @jdiv_round_up(i64 noundef %31, i64 noundef %.sink121) #2
  %33 = trunc i64 %32 to i32
  %34 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 %33, ptr %34, align 8, !tbaa !24
  %35 = getelementptr inbounds i8, ptr %0, i64 384
  store i32 %.sink108, ptr %35, align 8, !tbaa !25
  %36 = getelementptr inbounds i8, ptr %0, i64 288
  %37 = load ptr, ptr %36, align 8, !tbaa !26
  %38 = getelementptr inbounds i8, ptr %0, i64 56
  %39 = load i32, ptr %38, align 8, !tbaa !27
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph97.split.us, label %._crit_edge

.thread:                                          ; preds = %18
  %41 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %21, ptr %41, align 4, !tbaa !22
  %42 = getelementptr inbounds i8, ptr %0, i64 52
  %43 = load i32, ptr %42, align 4, !tbaa !23
  %44 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 %43, ptr %44, align 8, !tbaa !24
  %45 = getelementptr inbounds i8, ptr %0, i64 384
  store i32 8, ptr %45, align 8, !tbaa !25
  %46 = getelementptr inbounds i8, ptr %0, i64 288
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %0, i64 56
  %49 = load i32, ptr %48, align 8, !tbaa !27
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.critedge.preheader, label %._crit_edge

.critedge.preheader:                              ; preds = %.thread
  %xtraiter = and i32 %49, 7
  %51 = icmp ult i32 %49, 8
  br i1 %51, label %.preheader.loopexit.unr-lcssa, label %.critedge.preheader.new

.critedge.preheader.new:                          ; preds = %.critedge.preheader
  %unroll_iter = and i32 %49, 2147483640
  br label %.critedge

.lr.ph97.split.us:                                ; preds = %24
  %52 = getelementptr inbounds i8, ptr %0, i64 380
  %53 = getelementptr inbounds i8, ptr %0, i64 376
  %54 = load i32, ptr %53, align 8, !tbaa !28
  %55 = mul nsw i32 %54, %.sink108
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.critedge.us, %.lr.ph97.split.us
  %.07796.us = phi ptr [ %37, %.lr.ph97.split.us ], [ %70, %.critedge.us ]
  %.07895.us = phi i32 [ 0, %.lr.ph97.split.us ], [ %69, %.critedge.us ]
  %56 = getelementptr inbounds i8, ptr %.07796.us, i64 8
  %57 = getelementptr inbounds i8, ptr %.07796.us, i64 12
  %58 = load i32, ptr %56, align 8, !tbaa !29
  %factor.op.mul.us = shl i32 %58, 1
  br label %59

59:                                               ; preds = %.lr.ph.us, %66
  %.090.us = phi i32 [ %.sink108, %.lr.ph.us ], [ %62, %66 ]
  %.reass.us = mul i32 %.090.us, %factor.op.mul.us
  %.not87.us = icmp sgt i32 %.reass.us, %55
  br i1 %.not87.us, label %.critedge.us, label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %57, align 4, !tbaa !31
  %62 = shl i32 %.090.us, 1
  %63 = mul i32 %62, %61
  %64 = load i32, ptr %52, align 4, !tbaa !32
  %65 = mul nsw i32 %64, %.sink108
  %.not88.us = icmp sgt i32 %63, %65
  br i1 %.not88.us, label %.critedge.us, label %66

66:                                               ; preds = %60
  %67 = icmp slt i32 %.090.us, 4
  br i1 %67, label %59, label %.critedge.us, !llvm.loop !33

.critedge.us:                                     ; preds = %60, %66, %59
  %.0.lcssa.us = phi i32 [ %.090.us, %59 ], [ %62, %66 ], [ %.090.us, %60 ]
  %68 = getelementptr inbounds i8, ptr %.07796.us, i64 36
  store i32 %.0.lcssa.us, ptr %68, align 4, !tbaa !35
  %69 = add nuw nsw i32 %.07895.us, 1
  %70 = getelementptr inbounds i8, ptr %.07796.us, i64 96
  %exitcond102.not = icmp eq i32 %69, %39
  br i1 %exitcond102.not, label %.preheader, label %.lr.ph.us, !llvm.loop !36

.preheader.loopexit.unr-lcssa:                    ; preds = %.critedge, %.critedge.preheader
  %.07796.unr = phi ptr [ %47, %.critedge.preheader ], [ %89, %.critedge ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.critedge.epil

.critedge.epil:                                   ; preds = %.preheader.loopexit.unr-lcssa, %.critedge.epil
  %.07796.epil = phi ptr [ %72, %.critedge.epil ], [ %.07796.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.critedge.epil ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %71 = getelementptr inbounds i8, ptr %.07796.epil, i64 36
  store i32 8, ptr %71, align 4, !tbaa !35
  %72 = getelementptr inbounds i8, ptr %.07796.epil, i64 96
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.critedge.epil, !llvm.loop !37

.preheader:                                       ; preds = %.critedge.us, %.preheader.loopexit.unr-lcssa, %.critedge.epil
  %73 = phi i1 [ %50, %.critedge.epil ], [ %50, %.preheader.loopexit.unr-lcssa ], [ true, %.critedge.us ]
  %74 = phi i32 [ %49, %.critedge.epil ], [ %49, %.preheader.loopexit.unr-lcssa ], [ %39, %.critedge.us ]
  %75 = phi ptr [ %48, %.critedge.epil ], [ %48, %.preheader.loopexit.unr-lcssa ], [ %38, %.critedge.us ]
  %76 = phi ptr [ %47, %.critedge.epil ], [ %47, %.preheader.loopexit.unr-lcssa ], [ %37, %.critedge.us ]
  br i1 %73, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %77 = getelementptr inbounds i8, ptr %0, i64 48
  %78 = getelementptr inbounds i8, ptr %0, i64 376
  %79 = getelementptr inbounds i8, ptr %0, i64 52
  %80 = getelementptr inbounds i8, ptr %0, i64 380
  br label %90

.critedge:                                        ; preds = %.critedge, %.critedge.preheader.new
  %.07796 = phi ptr [ %47, %.critedge.preheader.new ], [ %89, %.critedge ]
  %niter = phi i32 [ 0, %.critedge.preheader.new ], [ %niter.next.7, %.critedge ]
  %81 = getelementptr inbounds i8, ptr %.07796, i64 36
  store i32 8, ptr %81, align 4, !tbaa !35
  %82 = getelementptr inbounds i8, ptr %.07796, i64 132
  store i32 8, ptr %82, align 4, !tbaa !35
  %83 = getelementptr inbounds i8, ptr %.07796, i64 228
  store i32 8, ptr %83, align 4, !tbaa !35
  %84 = getelementptr inbounds i8, ptr %.07796, i64 324
  store i32 8, ptr %84, align 4, !tbaa !35
  %85 = getelementptr inbounds i8, ptr %.07796, i64 420
  store i32 8, ptr %85, align 4, !tbaa !35
  %86 = getelementptr inbounds i8, ptr %.07796, i64 516
  store i32 8, ptr %86, align 4, !tbaa !35
  %87 = getelementptr inbounds i8, ptr %.07796, i64 612
  store i32 8, ptr %87, align 4, !tbaa !35
  %88 = getelementptr inbounds i8, ptr %.07796, i64 708
  store i32 8, ptr %88, align 4, !tbaa !35
  %89 = getelementptr inbounds i8, ptr %.07796, i64 768
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader.loopexit.unr-lcssa, label %.critedge, !llvm.loop !36

90:                                               ; preds = %.lr.ph, %90
  %.199 = phi ptr [ %76, %.lr.ph ], [ %121, %90 ]
  %.17998 = phi i32 [ 0, %.lr.ph ], [ %120, %90 ]
  %91 = load i32, ptr %77, align 8, !tbaa !21
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %.199, i64 8
  %94 = load i32, ptr %93, align 8, !tbaa !29
  %95 = getelementptr inbounds i8, ptr %.199, i64 36
  %96 = load i32, ptr %95, align 4, !tbaa !35
  %97 = mul nsw i32 %96, %94
  %98 = sext i32 %97 to i64
  %99 = mul nsw i64 %98, %92
  %100 = load i32, ptr %78, align 8, !tbaa !28
  %101 = shl nsw i32 %100, 3
  %102 = sext i32 %101 to i64
  %103 = tail call i64 @jdiv_round_up(i64 noundef %99, i64 noundef %102) #2
  %104 = trunc i64 %103 to i32
  %105 = getelementptr inbounds i8, ptr %.199, i64 40
  store i32 %104, ptr %105, align 8, !tbaa !39
  %106 = load i32, ptr %79, align 4, !tbaa !23
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %.199, i64 12
  %109 = load i32, ptr %108, align 4, !tbaa !31
  %110 = load i32, ptr %95, align 4, !tbaa !35
  %111 = mul nsw i32 %110, %109
  %112 = sext i32 %111 to i64
  %113 = mul nsw i64 %112, %107
  %114 = load i32, ptr %80, align 4, !tbaa !32
  %115 = shl nsw i32 %114, 3
  %116 = sext i32 %115 to i64
  %117 = tail call i64 @jdiv_round_up(i64 noundef %113, i64 noundef %116) #2
  %118 = trunc i64 %117 to i32
  %119 = getelementptr inbounds i8, ptr %.199, i64 44
  store i32 %118, ptr %119, align 4, !tbaa !40
  %120 = add nuw nsw i32 %.17998, 1
  %121 = getelementptr inbounds i8, ptr %.199, i64 96
  %122 = load i32, ptr %75, align 8, !tbaa !27
  %123 = icmp slt i32 %120, %122
  br i1 %123, label %90, label %._crit_edge, !llvm.loop !41

._crit_edge:                                      ; preds = %90, %24, %.thread, %.preheader
  %.lcssa = phi i32 [ %74, %.preheader ], [ %39, %24 ], [ %49, %.thread ], [ %122, %90 ]
  %124 = getelementptr inbounds i8, ptr %0, i64 64
  %125 = load i32, ptr %124, align 8, !tbaa !42
  %switch.tableidx = add i32 %125, -1
  %126 = icmp ult i32 %switch.tableidx, 5
  br i1 %126, label %switch.lookup, label %128

switch.lookup:                                    ; preds = %._crit_edge
  %127 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [5 x i32], ptr @switch.table.jpeg_calc_output_dimensions, i64 0, i64 %127
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %128

128:                                              ; preds = %._crit_edge, %switch.lookup
  %.lcssa.sink = phi i32 [ %switch.load, %switch.lookup ], [ %.lcssa, %._crit_edge ]
  %129 = getelementptr inbounds i8, ptr %0, i64 124
  store i32 %.lcssa.sink, ptr %129, align 4, !tbaa !43
  %130 = getelementptr inbounds i8, ptr %0, i64 98
  %131 = load i8, ptr %130, align 2, !tbaa !44
  %.not85 = icmp eq i8 %131, 0
  %132 = select i1 %.not85, i32 %.lcssa.sink, i32 1
  %133 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %132, ptr %133, align 8, !tbaa !45
  %134 = tail call zeroext i8 @use_merged_upsample(ptr noundef nonnull %0)
  %.not86 = icmp eq i8 %134, 0
  br i1 %.not86, label %138, label %135

135:                                              ; preds = %128
  %136 = getelementptr inbounds i8, ptr %0, i64 380
  %137 = load i32, ptr %136, align 4, !tbaa !32
  br label %138

138:                                              ; preds = %128, %135
  %.sink = phi i32 [ %137, %135 ], [ 1, %128 ]
  %139 = getelementptr inbounds i8, ptr %0, i64 132
  store i32 %.sink, ptr %139, align 4
  ret void
}

declare i64 @jdiv_round_up(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @use_merged_upsample(ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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_decompress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !8, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !11, i64 80, !8, i64 88, !8, i64 89, !10, i64 92, !8, i64 96, !8, i64 97, !8, i64 98, !10, i64 100, !8, i64 104, !10, i64 108, !8, i64 112, !8, i64 113, !8, i64 114, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !7, i64 176, !8, i64 184, !8, i64 216, !8, i64 248, !10, i64 280, !7, i64 288, !8, i64 296, !8, i64 297, !8, i64 298, !8, i64 314, !8, i64 330, !10, i64 348, !8, i64 352, !8, i64 353, !8, i64 354, !8, i64 355, !12, i64 356, !12, i64 358, !8, i64 360, !8, i64 361, !8, i64 362, !7, i64 368, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !7, i64 392, !10, i64 400, !8, i64 408, !10, i64 440, !10, i64 444, !10, i64 448, !8, i64 452, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592}
!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 68}
!20 = !{!6, !10, i64 72}
!21 = !{!6, !10, i64 48}
!22 = !{!6, !10, i64 116}
!23 = !{!6, !10, i64 52}
!24 = !{!6, !10, i64 120}
!25 = !{!6, !10, i64 384}
!26 = !{!6, !7, i64 288}
!27 = !{!6, !10, i64 56}
!28 = !{!6, !10, i64 376}
!29 = !{!30, !10, i64 8}
!30 = !{!"", !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}
!31 = !{!30, !10, i64 12}
!32 = !{!6, !10, i64 380}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!30, !10, i64 36}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.unroll.disable"}
!39 = !{!30, !10, i64 40}
!40 = !{!30, !10, i64 44}
!41 = distinct !{!41, !34}
!42 = !{!6, !10, i64 64}
!43 = !{!6, !10, i64 124}
!44 = !{!6, !8, i64 98}
!45 = !{!6, !10, i64 128}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass