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

; 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_memory_mgr = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64 }
%struct.my_color_converter = type { %struct.jpeg_color_converter, ptr }
%struct.jpeg_color_converter = type { 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] }

; Function Attrs: nounwind uwtable
define dso_local void @jinit_color_converter(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  %4 = load ptr, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %4, i32 0, i32 1
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds %struct.jpeg_memory_mgr, ptr %6, i32 0, i32 0
  %8 = load ptr, ptr %7, align 8, !tbaa !14
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = call ptr %8(ptr noundef %9, i32 noundef 1, i64 noundef 24)
  store ptr %10, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %12, i32 0, i32 59
  store ptr %11, ptr %13, align 8, !tbaa !17
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.my_color_converter, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.jpeg_color_converter, ptr %15, i32 0, i32 0
  store ptr @null_method, ptr %16, align 8, !tbaa !18
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %17, i32 0, i32 10
  %19 = load i32, ptr %18, align 4, !tbaa !21
  switch i32 %19, label %71 [
    i32 1, label %20
    i32 2, label %37
    i32 3, label %37
    i32 4, label %54
    i32 5, label %54
  ]

20:                                               ; preds = %1
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %21, i32 0, i32 9
  %23 = load i32, ptr %22, align 8, !tbaa !22
  %24 = icmp ne i32 %23, 1
  br i1 %24, label %25, label %36

25:                                               ; preds = %20
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %29 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %28, i32 0, i32 5
  store i32 9, ptr %29, align 8, !tbaa !24
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !23
  %33 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !26
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  call void %34(ptr noundef %35)
  br label %36

36:                                               ; preds = %25, %20
  br label %88

37:                                               ; preds = %1, %1
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %38, i32 0, i32 9
  %40 = load i32, ptr %39, align 8, !tbaa !22
  %41 = icmp ne i32 %40, 3
  br i1 %41, label %42, label %53

42:                                               ; preds = %37
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !23
  %46 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %45, i32 0, i32 5
  store i32 9, ptr %46, align 8, !tbaa !24
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !23
  %50 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !26
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  call void %51(ptr noundef %52)
  br label %53

53:                                               ; preds = %42, %37
  br label %88

54:                                               ; preds = %1, %1
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %55, i32 0, i32 9
  %57 = load i32, ptr %56, align 8, !tbaa !22
  %58 = icmp ne i32 %57, 4
  br i1 %58, label %59, label %70

59:                                               ; preds = %54
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !23
  %63 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %62, i32 0, i32 5
  store i32 9, ptr %63, align 8, !tbaa !24
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !23
  %67 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !26
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  call void %68(ptr noundef %69)
  br label %70

70:                                               ; preds = %59, %54
  br label %88

71:                                               ; preds = %1
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %72, i32 0, i32 9
  %74 = load i32, ptr %73, align 8, !tbaa !22
  %75 = icmp slt i32 %74, 1
  br i1 %75, label %76, label %87

76:                                               ; preds = %71
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !23
  %80 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %79, i32 0, i32 5
  store i32 9, ptr %80, align 8, !tbaa !24
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !26
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  call void %85(ptr noundef %86)
  br label %87

87:                                               ; preds = %76, %71
  br label %88

88:                                               ; preds = %87, %70, %53, %36
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %89, i32 0, i32 14
  %91 = load i32, ptr %90, align 8, !tbaa !27
  switch i32 %91, label %326 [
    i32 1, label %92
    i32 2, label %152
    i32 3, label %189
    i32 4, label %239
    i32 5, label %276
  ]

92:                                               ; preds = %88
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %93, i32 0, i32 13
  %95 = load i32, ptr %94, align 4, !tbaa !28
  %96 = icmp ne i32 %95, 1
  br i1 %96, label %97, label %108

97:                                               ; preds = %92
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !23
  %101 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %100, i32 0, i32 5
  store i32 10, ptr %101, align 8, !tbaa !24
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !23
  %105 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !26
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  call void %106(ptr noundef %107)
  br label %108

108:                                              ; preds = %97, %92
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %109, i32 0, i32 10
  %111 = load i32, ptr %110, align 4, !tbaa !21
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %117

113:                                              ; preds = %108
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.my_color_converter, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.jpeg_color_converter, ptr %115, i32 0, i32 1
  store ptr @grayscale_convert, ptr %116, align 8, !tbaa !29
  br label %151

117:                                              ; preds = %108
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %118, i32 0, i32 10
  %120 = load i32, ptr %119, align 4, !tbaa !21
  %121 = icmp eq i32 %120, 2
  br i1 %121, label %122, label %129

122:                                              ; preds = %117
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.my_color_converter, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.jpeg_color_converter, ptr %124, i32 0, i32 0
  store ptr @rgb_ycc_start, ptr %125, align 8, !tbaa !18
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.my_color_converter, ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds %struct.jpeg_color_converter, ptr %127, i32 0, i32 1
  store ptr @rgb_gray_convert, ptr %128, align 8, !tbaa !29
  br label %150

129:                                              ; preds = %117
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %130, i32 0, i32 10
  %132 = load i32, ptr %131, align 4, !tbaa !21
  %133 = icmp eq i32 %132, 3
  br i1 %133, label %134, label %138

134:                                              ; preds = %129
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.my_color_converter, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %struct.jpeg_color_converter, ptr %136, i32 0, i32 1
  store ptr @grayscale_convert, ptr %137, align 8, !tbaa !29
  br label %149

138:                                              ; preds = %129
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !23
  %142 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %141, i32 0, i32 5
  store i32 27, ptr %142, align 8, !tbaa !24
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !23
  %146 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !26
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  call void %147(ptr noundef %148)
  br label %149

149:                                              ; preds = %138, %134
  br label %150

150:                                              ; preds = %149, %122
  br label %151

151:                                              ; preds = %150, %113
  br label %357

152:                                              ; preds = %88
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %153, i32 0, i32 13
  %155 = load i32, ptr %154, align 4, !tbaa !28
  %156 = icmp ne i32 %155, 3
  br i1 %156, label %157, label %168

157:                                              ; preds = %152
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %158, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8, !tbaa !23
  %161 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %160, i32 0, i32 5
  store i32 10, ptr %161, align 8, !tbaa !24
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !23
  %165 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !26
  %167 = load ptr, ptr %2, align 8, !tbaa !5
  call void %166(ptr noundef %167)
  br label %168

168:                                              ; preds = %157, %152
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %169, i32 0, i32 10
  %171 = load i32, ptr %170, align 4, !tbaa !21
  %172 = icmp eq i32 %171, 2
  br i1 %172, label %173, label %177

173:                                              ; preds = %168
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.my_color_converter, ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %struct.jpeg_color_converter, ptr %175, i32 0, i32 1
  store ptr @null_convert, ptr %176, align 8, !tbaa !29
  br label %188

177:                                              ; preds = %168
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !23
  %181 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %180, i32 0, i32 5
  store i32 27, ptr %181, align 8, !tbaa !24
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %182, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8, !tbaa !23
  %185 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !26
  %187 = load ptr, ptr %2, align 8, !tbaa !5
  call void %186(ptr noundef %187)
  br label %188

188:                                              ; preds = %177, %173
  br label %357

189:                                              ; preds = %88
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %190, i32 0, i32 13
  %192 = load i32, ptr %191, align 4, !tbaa !28
  %193 = icmp ne i32 %192, 3
  br i1 %193, label %194, label %205

194:                                              ; preds = %189
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !23
  %198 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %197, i32 0, i32 5
  store i32 10, ptr %198, align 8, !tbaa !24
  %199 = load ptr, ptr %2, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !23
  %202 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %201, i32 0, i32 0
  %203 = load ptr, ptr %202, align 8, !tbaa !26
  %204 = load ptr, ptr %2, align 8, !tbaa !5
  call void %203(ptr noundef %204)
  br label %205

205:                                              ; preds = %194, %189
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %206, i32 0, i32 10
  %208 = load i32, ptr %207, align 4, !tbaa !21
  %209 = icmp eq i32 %208, 2
  br i1 %209, label %210, label %217

210:                                              ; preds = %205
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.my_color_converter, ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %struct.jpeg_color_converter, ptr %212, i32 0, i32 0
  store ptr @rgb_ycc_start, ptr %213, align 8, !tbaa !18
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.my_color_converter, ptr %214, i32 0, i32 0
  %216 = getelementptr inbounds %struct.jpeg_color_converter, ptr %215, i32 0, i32 1
  store ptr @rgb_ycc_convert, ptr %216, align 8, !tbaa !29
  br label %238

217:                                              ; preds = %205
  %218 = load ptr, ptr %2, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %218, i32 0, i32 10
  %220 = load i32, ptr %219, align 4, !tbaa !21
  %221 = icmp eq i32 %220, 3
  br i1 %221, label %222, label %226

222:                                              ; preds = %217
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.my_color_converter, ptr %223, i32 0, i32 0
  %225 = getelementptr inbounds %struct.jpeg_color_converter, ptr %224, i32 0, i32 1
  store ptr @null_convert, ptr %225, align 8, !tbaa !29
  br label %237

226:                                              ; preds = %217
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !23
  %230 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %229, i32 0, i32 5
  store i32 27, ptr %230, align 8, !tbaa !24
  %231 = load ptr, ptr %2, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %231, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8, !tbaa !23
  %234 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %233, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8, !tbaa !26
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  call void %235(ptr noundef %236)
  br label %237

237:                                              ; preds = %226, %222
  br label %238

238:                                              ; preds = %237, %210
  br label %357

239:                                              ; preds = %88
  %240 = load ptr, ptr %2, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %240, i32 0, i32 13
  %242 = load i32, ptr %241, align 4, !tbaa !28
  %243 = icmp ne i32 %242, 4
  br i1 %243, label %244, label %255

244:                                              ; preds = %239
  %245 = load ptr, ptr %2, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %245, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !23
  %248 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %247, i32 0, i32 5
  store i32 10, ptr %248, align 8, !tbaa !24
  %249 = load ptr, ptr %2, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %249, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8, !tbaa !23
  %252 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !26
  %254 = load ptr, ptr %2, align 8, !tbaa !5
  call void %253(ptr noundef %254)
  br label %255

255:                                              ; preds = %244, %239
  %256 = load ptr, ptr %2, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %256, i32 0, i32 10
  %258 = load i32, ptr %257, align 4, !tbaa !21
  %259 = icmp eq i32 %258, 4
  br i1 %259, label %260, label %264

260:                                              ; preds = %255
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.my_color_converter, ptr %261, i32 0, i32 0
  %263 = getelementptr inbounds %struct.jpeg_color_converter, ptr %262, i32 0, i32 1
  store ptr @null_convert, ptr %263, align 8, !tbaa !29
  br label %275

264:                                              ; preds = %255
  %265 = load ptr, ptr %2, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %265, i32 0, i32 0
  %267 = load ptr, ptr %266, align 8, !tbaa !23
  %268 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %267, i32 0, i32 5
  store i32 27, ptr %268, align 8, !tbaa !24
  %269 = load ptr, ptr %2, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !23
  %272 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %271, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8, !tbaa !26
  %274 = load ptr, ptr %2, align 8, !tbaa !5
  call void %273(ptr noundef %274)
  br label %275

275:                                              ; preds = %264, %260
  br label %357

276:                                              ; preds = %88
  %277 = load ptr, ptr %2, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %277, i32 0, i32 13
  %279 = load i32, ptr %278, align 4, !tbaa !28
  %280 = icmp ne i32 %279, 4
  br i1 %280, label %281, label %292

281:                                              ; preds = %276
  %282 = load ptr, ptr %2, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %282, i32 0, i32 0
  %284 = load ptr, ptr %283, align 8, !tbaa !23
  %285 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %284, i32 0, i32 5
  store i32 10, ptr %285, align 8, !tbaa !24
  %286 = load ptr, ptr %2, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %286, i32 0, i32 0
  %288 = load ptr, ptr %287, align 8, !tbaa !23
  %289 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %288, i32 0, i32 0
  %290 = load ptr, ptr %289, align 8, !tbaa !26
  %291 = load ptr, ptr %2, align 8, !tbaa !5
  call void %290(ptr noundef %291)
  br label %292

292:                                              ; preds = %281, %276
  %293 = load ptr, ptr %2, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %293, i32 0, i32 10
  %295 = load i32, ptr %294, align 4, !tbaa !21
  %296 = icmp eq i32 %295, 4
  br i1 %296, label %297, label %304

297:                                              ; preds = %292
  %298 = load ptr, ptr %3, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.my_color_converter, ptr %298, i32 0, i32 0
  %300 = getelementptr inbounds %struct.jpeg_color_converter, ptr %299, i32 0, i32 0
  store ptr @rgb_ycc_start, ptr %300, align 8, !tbaa !18
  %301 = load ptr, ptr %3, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.my_color_converter, ptr %301, i32 0, i32 0
  %303 = getelementptr inbounds %struct.jpeg_color_converter, ptr %302, i32 0, i32 1
  store ptr @cmyk_ycck_convert, ptr %303, align 8, !tbaa !29
  br label %325

304:                                              ; preds = %292
  %305 = load ptr, ptr %2, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %305, i32 0, i32 10
  %307 = load i32, ptr %306, align 4, !tbaa !21
  %308 = icmp eq i32 %307, 5
  br i1 %308, label %309, label %313

309:                                              ; preds = %304
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.my_color_converter, ptr %310, i32 0, i32 0
  %312 = getelementptr inbounds %struct.jpeg_color_converter, ptr %311, i32 0, i32 1
  store ptr @null_convert, ptr %312, align 8, !tbaa !29
  br label %324

313:                                              ; preds = %304
  %314 = load ptr, ptr %2, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %314, i32 0, i32 0
  %316 = load ptr, ptr %315, align 8, !tbaa !23
  %317 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %316, i32 0, i32 5
  store i32 27, ptr %317, align 8, !tbaa !24
  %318 = load ptr, ptr %2, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %318, i32 0, i32 0
  %320 = load ptr, ptr %319, align 8, !tbaa !23
  %321 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %320, i32 0, i32 0
  %322 = load ptr, ptr %321, align 8, !tbaa !26
  %323 = load ptr, ptr %2, align 8, !tbaa !5
  call void %322(ptr noundef %323)
  br label %324

324:                                              ; preds = %313, %309
  br label %325

325:                                              ; preds = %324, %297
  br label %357

326:                                              ; preds = %88
  %327 = load ptr, ptr %2, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %327, i32 0, i32 14
  %329 = load i32, ptr %328, align 8, !tbaa !27
  %330 = load ptr, ptr %2, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %330, i32 0, i32 10
  %332 = load i32, ptr %331, align 4, !tbaa !21
  %333 = icmp ne i32 %329, %332
  br i1 %333, label %342, label %334

334:                                              ; preds = %326
  %335 = load ptr, ptr %2, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %335, i32 0, i32 13
  %337 = load i32, ptr %336, align 4, !tbaa !28
  %338 = load ptr, ptr %2, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %338, i32 0, i32 9
  %340 = load i32, ptr %339, align 8, !tbaa !22
  %341 = icmp ne i32 %337, %340
  br i1 %341, label %342, label %353

342:                                              ; preds = %334, %326
  %343 = load ptr, ptr %2, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %343, i32 0, i32 0
  %345 = load ptr, ptr %344, align 8, !tbaa !23
  %346 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %345, i32 0, i32 5
  store i32 27, ptr %346, align 8, !tbaa !24
  %347 = load ptr, ptr %2, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %347, i32 0, i32 0
  %349 = load ptr, ptr %348, align 8, !tbaa !23
  %350 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %349, i32 0, i32 0
  %351 = load ptr, ptr %350, align 8, !tbaa !26
  %352 = load ptr, ptr %2, align 8, !tbaa !5
  call void %351(ptr noundef %352)
  br label %353

353:                                              ; preds = %342, %334
  %354 = load ptr, ptr %3, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.my_color_converter, ptr %354, i32 0, i32 0
  %356 = getelementptr inbounds %struct.jpeg_color_converter, ptr %355, i32 0, i32 1
  store ptr @null_convert, ptr %356, align 8, !tbaa !29
  br label %357

357:                                              ; preds = %353, %325, %275, %238, %188, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @null_method(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @grayscale_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @rgb_ycc_start(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @rgb_gray_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @null_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @rgb_ycc_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @cmyk_ycck_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !6, i64 8}
!10 = !{!"jpeg_compress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !6, i64 88, !7, i64 96, !7, i64 128, !7, i64 160, !7, i64 192, !7, i64 208, !7, i64 224, !11, i64 240, !6, i64 248, !7, i64 256, !7, i64 257, !7, i64 258, !7, i64 259, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !7, i64 276, !7, i64 277, !7, i64 278, !7, i64 279, !13, i64 280, !13, i64 282, !7, i64 284, !11, i64 288, !7, i64 292, !11, i64 296, !11, i64 300, !11, i64 304, !11, i64 308, !7, i64 312, !11, i64 344, !11, i64 348, !11, i64 352, !7, i64 356, !11, i64 396, !11, i64 400, !11, i64 404, !11, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !11, i64 496}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"jpeg_memory_mgr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !16, i64 88, !16, i64 96}
!16 = !{!"long", !7, i64 0}
!17 = !{!10, !6, i64 456}
!18 = !{!19, !6, i64 0}
!19 = !{!"", !20, i64 0, !6, i64 16}
!20 = !{!"jpeg_color_converter", !6, i64 0, !6, i64 8}
!21 = !{!10, !11, i64 60}
!22 = !{!10, !11, i64 56}
!23 = !{!10, !6, i64 0}
!24 = !{!25, !11, i64 40}
!25 = !{!"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, !16, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 164}
!26 = !{!25, !6, i64 0}
!27 = !{!10, !11, i64 80}
!28 = !{!10, !11, i64 76}
!29 = !{!19, !6, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local void @jinit_color_converter(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %3, align 8, !tbaa !13
  %5 = tail call ptr %4(ptr noundef %0, i32 noundef 1, i64 noundef 24) #1
  %6 = getelementptr inbounds i8, ptr %0, i64 456
  store ptr %5, ptr %6, align 8, !tbaa !16
  store ptr @null_method, ptr %5, align 8, !tbaa !17
  %7 = getelementptr inbounds i8, ptr %0, i64 60
  %8 = load i32, ptr %7, align 4, !tbaa !20
  switch i32 %8, label %18 [
    i32 1, label %9
    i32 2, label %12
    i32 3, label %12
    i32 4, label %15
    i32 5, label %15
  ]

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = load i32, ptr %10, align 8, !tbaa !21
  %.not90 = icmp eq i32 %11, 1
  br i1 %.not90, label %25, label %.sink.split

12:                                               ; preds = %1, %1
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  %14 = load i32, ptr %13, align 8, !tbaa !21
  %.not89 = icmp eq i32 %14, 3
  br i1 %.not89, label %25, label %.sink.split

15:                                               ; preds = %1, %1
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = load i32, ptr %16, align 8, !tbaa !21
  %.not = icmp eq i32 %17, 4
  br i1 %.not, label %25, label %.sink.split

18:                                               ; preds = %1
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  %20 = load i32, ptr %19, align 8, !tbaa !21
  %21 = icmp slt i32 %20, 1
  br i1 %21, label %.sink.split, label %25

.sink.split:                                      ; preds = %18, %15, %12, %9
  %22 = load ptr, ptr %0, align 8, !tbaa !22
  %23 = getelementptr inbounds i8, ptr %22, i64 40
  store i32 9, ptr %23, align 8, !tbaa !23
  %24 = load ptr, ptr %22, align 8, !tbaa !25
  tail call void %24(ptr noundef nonnull %0) #1
  br label %25

25:                                               ; preds = %.sink.split, %18, %15, %12, %9
  %26 = getelementptr inbounds i8, ptr %0, i64 80
  %27 = load i32, ptr %26, align 8, !tbaa !26
  switch i32 %27, label %113 [
    i32 1, label %28
    i32 2, label %47
    i32 3, label %63
    i32 4, label %80
    i32 5, label %96
  ]

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 76
  %30 = load i32, ptr %29, align 4, !tbaa !27
  %.not95 = icmp eq i32 %30, 1
  br i1 %.not95, label %35, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr %0, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %32, i64 40
  store i32 10, ptr %33, align 8, !tbaa !23
  %34 = load ptr, ptr %32, align 8, !tbaa !25
  tail call void %34(ptr noundef nonnull %0) #1
  br label %35

35:                                               ; preds = %31, %28
  %36 = load i32, ptr %7, align 4, !tbaa !20
  switch i32 %36, label %43 [
    i32 1, label %37
    i32 2, label %39
    i32 3, label %41
  ]

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @grayscale_convert, ptr %38, align 8, !tbaa !28
  br label %126

39:                                               ; preds = %35
  store ptr @rgb_ycc_start, ptr %5, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @rgb_gray_convert, ptr %40, align 8, !tbaa !28
  br label %126

41:                                               ; preds = %35
  %42 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @grayscale_convert, ptr %42, align 8, !tbaa !28
  br label %126

43:                                               ; preds = %35
  %44 = load ptr, ptr %0, align 8, !tbaa !22
  %45 = getelementptr inbounds i8, ptr %44, i64 40
  store i32 27, ptr %45, align 8, !tbaa !23
  %46 = load ptr, ptr %44, align 8, !tbaa !25
  tail call void %46(ptr noundef nonnull %0) #1
  br label %126

47:                                               ; preds = %25
  %48 = getelementptr inbounds i8, ptr %0, i64 76
  %49 = load i32, ptr %48, align 4, !tbaa !27
  %.not94 = icmp eq i32 %49, 3
  br i1 %.not94, label %54, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr %0, align 8, !tbaa !22
  %52 = getelementptr inbounds i8, ptr %51, i64 40
  store i32 10, ptr %52, align 8, !tbaa !23
  %53 = load ptr, ptr %51, align 8, !tbaa !25
  tail call void %53(ptr noundef nonnull %0) #1
  br label %54

54:                                               ; preds = %50, %47
  %55 = load i32, ptr %7, align 4, !tbaa !20
  %56 = icmp eq i32 %55, 2
  br i1 %56, label %57, label %59

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @null_convert, ptr %58, align 8, !tbaa !28
  br label %126

59:                                               ; preds = %54
  %60 = load ptr, ptr %0, align 8, !tbaa !22
  %61 = getelementptr inbounds i8, ptr %60, i64 40
  store i32 27, ptr %61, align 8, !tbaa !23
  %62 = load ptr, ptr %60, align 8, !tbaa !25
  tail call void %62(ptr noundef nonnull %0) #1
  br label %126

63:                                               ; preds = %25
  %64 = getelementptr inbounds i8, ptr %0, i64 76
  %65 = load i32, ptr %64, align 4, !tbaa !27
  %.not93 = icmp eq i32 %65, 3
  br i1 %.not93, label %70, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr %0, align 8, !tbaa !22
  %68 = getelementptr inbounds i8, ptr %67, i64 40
  store i32 10, ptr %68, align 8, !tbaa !23
  %69 = load ptr, ptr %67, align 8, !tbaa !25
  tail call void %69(ptr noundef nonnull %0) #1
  br label %70

70:                                               ; preds = %66, %63
  %71 = load i32, ptr %7, align 4, !tbaa !20
  switch i32 %71, label %76 [
    i32 2, label %72
    i32 3, label %74
  ]

72:                                               ; preds = %70
  store ptr @rgb_ycc_start, ptr %5, align 8, !tbaa !17
  %73 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @rgb_ycc_convert, ptr %73, align 8, !tbaa !28
  br label %126

74:                                               ; preds = %70
  %75 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @null_convert, ptr %75, align 8, !tbaa !28
  br label %126

76:                                               ; preds = %70
  %77 = load ptr, ptr %0, align 8, !tbaa !22
  %78 = getelementptr inbounds i8, ptr %77, i64 40
  store i32 27, ptr %78, align 8, !tbaa !23
  %79 = load ptr, ptr %77, align 8, !tbaa !25
  tail call void %79(ptr noundef nonnull %0) #1
  br label %126

80:                                               ; preds = %25
  %81 = getelementptr inbounds i8, ptr %0, i64 76
  %82 = load i32, ptr %81, align 4, !tbaa !27
  %.not92 = icmp eq i32 %82, 4
  br i1 %.not92, label %87, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr %0, align 8, !tbaa !22
  %85 = getelementptr inbounds i8, ptr %84, i64 40
  store i32 10, ptr %85, align 8, !tbaa !23
  %86 = load ptr, ptr %84, align 8, !tbaa !25
  tail call void %86(ptr noundef nonnull %0) #1
  br label %87

87:                                               ; preds = %83, %80
  %88 = load i32, ptr %7, align 4, !tbaa !20
  %89 = icmp eq i32 %88, 4
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @null_convert, ptr %91, align 8, !tbaa !28
  br label %126

92:                                               ; preds = %87
  %93 = load ptr, ptr %0, align 8, !tbaa !22
  %94 = getelementptr inbounds i8, ptr %93, i64 40
  store i32 27, ptr %94, align 8, !tbaa !23
  %95 = load ptr, ptr %93, align 8, !tbaa !25
  tail call void %95(ptr noundef nonnull %0) #1
  br label %126

96:                                               ; preds = %25
  %97 = getelementptr inbounds i8, ptr %0, i64 76
  %98 = load i32, ptr %97, align 4, !tbaa !27
  %.not91 = icmp eq i32 %98, 4
  br i1 %.not91, label %103, label %99

99:                                               ; preds = %96
  %100 = load ptr, ptr %0, align 8, !tbaa !22
  %101 = getelementptr inbounds i8, ptr %100, i64 40
  store i32 10, ptr %101, align 8, !tbaa !23
  %102 = load ptr, ptr %100, align 8, !tbaa !25
  tail call void %102(ptr noundef nonnull %0) #1
  br label %103

103:                                              ; preds = %99, %96
  %104 = load i32, ptr %7, align 4, !tbaa !20
  switch i32 %104, label %109 [
    i32 4, label %105
    i32 5, label %107
  ]

105:                                              ; preds = %103
  store ptr @rgb_ycc_start, ptr %5, align 8, !tbaa !17
  %106 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @cmyk_ycck_convert, ptr %106, align 8, !tbaa !28
  br label %126

107:                                              ; preds = %103
  %108 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @null_convert, ptr %108, align 8, !tbaa !28
  br label %126

109:                                              ; preds = %103
  %110 = load ptr, ptr %0, align 8, !tbaa !22
  %111 = getelementptr inbounds i8, ptr %110, i64 40
  store i32 27, ptr %111, align 8, !tbaa !23
  %112 = load ptr, ptr %110, align 8, !tbaa !25
  tail call void %112(ptr noundef nonnull %0) #1
  br label %126

113:                                              ; preds = %25
  %114 = load i32, ptr %7, align 4, !tbaa !20
  %.not96 = icmp eq i32 %27, %114
  br i1 %.not96, label %115, label %120

115:                                              ; preds = %113
  %116 = getelementptr inbounds i8, ptr %0, i64 76
  %117 = load i32, ptr %116, align 4, !tbaa !27
  %118 = getelementptr inbounds i8, ptr %0, i64 56
  %119 = load i32, ptr %118, align 8, !tbaa !21
  %.not97 = icmp eq i32 %117, %119
  br i1 %.not97, label %124, label %120

120:                                              ; preds = %115, %113
  %121 = load ptr, ptr %0, align 8, !tbaa !22
  %122 = getelementptr inbounds i8, ptr %121, i64 40
  store i32 27, ptr %122, align 8, !tbaa !23
  %123 = load ptr, ptr %121, align 8, !tbaa !25
  tail call void %123(ptr noundef nonnull %0) #1
  br label %124

124:                                              ; preds = %120, %115
  %125 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr @null_convert, ptr %125, align 8, !tbaa !28
  br label %126

126:                                              ; preds = %105, %109, %107, %90, %92, %72, %76, %74, %57, %59, %37, %41, %43, %39, %124
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @null_method(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @grayscale_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @rgb_ycc_start(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @rgb_gray_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @null_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @rgb_ycc_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @cmyk_ycck_convert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 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 = { 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, !7, i64 8}
!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 = !{!14, !7, i64 0}
!14 = !{!"jpeg_memory_mgr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !15, i64 88, !15, i64 96}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 456}
!17 = !{!18, !7, i64 0}
!18 = !{!"", !19, i64 0, !7, i64 16}
!19 = !{!"jpeg_color_converter", !7, i64 0, !7, i64 8}
!20 = !{!6, !10, i64 60}
!21 = !{!6, !10, i64 56}
!22 = !{!6, !7, i64 0}
!23 = !{!24, !10, i64 40}
!24 = !{!"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, !15, i64 128, !7, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 164}
!25 = !{!24, !7, i64 0}
!26 = !{!6, !10, i64 80}
!27 = !{!6, !10, i64 76}
!28 = !{!18, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass