; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder/jpgd.ll (ZN4jpgd12jpeg_decoder13load_next_rowEv)

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

%"class.jpgd::jpeg_decoder" = type <{ [1 x %struct.__jmp_buf_tag], i32, [4 x i8], ptr, i32, i32, ptr, i32, [8 x i8], [4 x i8], [8 x ptr], [8 x ptr], [4 x ptr], i32, i32, [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], i32, [4 x i32], [4 x i32], [4 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, i32, [4 x i8], [8 x ptr], [4 x ptr], [4 x ptr], i32, [4 x i32], [4 x i8], ptr, i32, i32, [64 x i8], [8320 x i8], [64 x i8], i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], ptr, [10 x i32], ptr, ptr, [256 x i32], [256 x i32], [256 x i32], [256 x i32], ptr, ptr, i32, i32, i8, i8, i8, [5 x i8] }>
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@_ZN4jpgdL5g_ZAGE = external hidden global [64 x i32], align 16

; 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: mustprogress noreturn uwtable
declare dso_local void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523), i32 noundef) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4jpgd12jpeg_decoder13transform_mcuEi(ptr noundef nonnull align 8 dereferenceable(13523), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder13load_next_rowEv(ptr noundef nonnull align 8 dereferenceable(13523) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [4 x i32], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %17 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 16, i1 false)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %221, %1
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 33
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = icmp slt i32 %19, %21
  br i1 %22, label %23, label %224

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %216, %23
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 31
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = icmp slt i32 %25, %27
  br i1 %28, label %29, label %219

29:                                               ; preds = %24
  %30 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 35
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [10 x i32], ptr %30, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %34, ptr %10, align 4, !tbaa !9
  %35 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 17
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [4 x i32], ptr %35, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = icmp sge i32 %39, 4
  br i1 %40, label %41, label %42

41:                                               ; preds = %29
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %16, i32 noundef -230) #7
  unreachable

42:                                               ; preds = %29
  %43 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 12
  %44 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 17
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [4 x i32], ptr %44, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [4 x ptr], ptr %43, i64 0, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 64
  %53 = load ptr, ptr %52, align 8, !tbaa !16
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = mul nsw i32 64, %54
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i16, ptr %53, i64 %56
  store ptr %57, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %58 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 45
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [4 x ptr], ptr %58, i64 0, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = add nsw i32 %66, %67
  %69 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 47
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [4 x i32], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = add nsw i32 %73, %74
  %76 = call noundef ptr @_ZN4jpgd12jpeg_decoder14coeff_buf_getpEPNS0_9coeff_bufEii(ptr noundef nonnull align 8 dereferenceable(13523) %16, ptr noundef %62, i32 noundef %68, i32 noundef %75)
  store ptr %76, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %77 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 44
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4 x ptr], ptr %77, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = load i32, ptr %12, align 4, !tbaa !9
  %87 = add nsw i32 %85, %86
  %88 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 47
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [4 x i32], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = add nsw i32 %92, %93
  %95 = call noundef ptr @_ZN4jpgd12jpeg_decoder14coeff_buf_getpEPNS0_9coeff_bufEii(ptr noundef nonnull align 8 dereferenceable(13523) %16, ptr noundef %81, i32 noundef %87, i32 noundef %94)
  store ptr %95, ptr %15, align 8, !tbaa !5
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = getelementptr inbounds i16, ptr %96, i64 0
  %98 = load i16, ptr %97, align 2, !tbaa !17
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds i16, ptr %99, i64 0
  store i16 %98, ptr %100, align 2, !tbaa !17
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds i16, ptr %101, i64 1
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds i16, ptr %103, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %102, ptr align 2 %104, i64 126, i1 false)
  store i32 63, ptr %3, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %120, %42
  %106 = load i32, ptr %3, align 4, !tbaa !9
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %108, label %123

108:                                              ; preds = %105
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = load i32, ptr %3, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i16, ptr %109, i64 %114
  %116 = load i16, ptr %115, align 2, !tbaa !17
  %117 = icmp ne i16 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %108
  br label %123

119:                                              ; preds = %108
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %3, align 4, !tbaa !9
  %122 = add nsw i32 %121, -1
  store i32 %122, ptr %3, align 4, !tbaa !9
  br label %105, !llvm.loop !19

123:                                              ; preds = %118, %105
  %124 = load i32, ptr %3, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  %126 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 65
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [10 x i32], ptr %126, i64 0, i64 %128
  store i32 %125, ptr %129, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %169, %123
  %131 = load i32, ptr %3, align 4, !tbaa !9
  %132 = icmp sge i32 %131, 0
  br i1 %132, label %133, label %172

133:                                              ; preds = %130
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = load i32, ptr %3, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds i16, ptr %134, i64 %139
  %141 = load i16, ptr %140, align 2, !tbaa !17
  %142 = icmp ne i16 %141, 0
  br i1 %142, label %143, label %168

143:                                              ; preds = %133
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = load i32, ptr %3, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds i16, ptr %144, i64 %149
  %151 = load i16, ptr %150, align 2, !tbaa !17
  %152 = sext i16 %151 to i32
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load i32, ptr %3, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i16, ptr %153, i64 %155
  %157 = load i16, ptr %156, align 2, !tbaa !17
  %158 = sext i16 %157 to i32
  %159 = mul nsw i32 %152, %158
  %160 = trunc i32 %159 to i16
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load i32, ptr %3, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i16, ptr %161, i64 %166
  store i16 %160, ptr %167, align 2, !tbaa !17
  br label %168

168:                                              ; preds = %143, %133
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %3, align 4, !tbaa !9
  %171 = add nsw i32 %170, -1
  store i32 %171, ptr %3, align 4, !tbaa !9
  br label %130, !llvm.loop !21

172:                                              ; preds = %130
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %8, align 4, !tbaa !9
  %175 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 21
  %176 = load i32, ptr %175, align 8, !tbaa !22
  %177 = icmp eq i32 %176, 1
  br i1 %177, label %178, label %184

178:                                              ; preds = %172
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %181, align 4, !tbaa !9
  br label %215

184:                                              ; preds = %172
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %12, align 4, !tbaa !9
  %187 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 15
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [4 x i32], ptr %187, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = icmp eq i32 %186, %191
  br i1 %192, label %193, label %214

193:                                              ; preds = %184
  store i32 0, ptr %12, align 4, !tbaa !9
  %194 = load i32, ptr %13, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %13, align 4, !tbaa !9
  %196 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 16
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [4 x i32], ptr %196, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = icmp eq i32 %195, %200
  br i1 %201, label %202, label %213

202:                                              ; preds = %193
  store i32 0, ptr %13, align 4, !tbaa !9
  %203 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 15
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [4 x i32], ptr %203, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = load i32, ptr %10, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !9
  %212 = add nsw i32 %211, %207
  store i32 %212, ptr %210, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %202, %193
  br label %214

214:                                              ; preds = %213, %184
  br label %215

215:                                              ; preds = %214, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %7, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %7, align 4, !tbaa !9
  br label %24, !llvm.loop !23

219:                                              ; preds = %24
  %220 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN4jpgd12jpeg_decoder13transform_mcuEi(ptr noundef nonnull align 8 dereferenceable(13523) %16, i32 noundef %220)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %221

221:                                              ; preds = %219
  %222 = load i32, ptr %6, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %6, align 4, !tbaa !9
  br label %18, !llvm.loop !24

224:                                              ; preds = %18
  %225 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 21
  %226 = load i32, ptr %225, align 8, !tbaa !22
  %227 = icmp eq i32 %226, 1
  br i1 %227, label %228, label %237

228:                                              ; preds = %224
  %229 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 47
  %230 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 22
  %231 = getelementptr inbounds [4 x i32], ptr %230, i64 0, i64 0
  %232 = load i32, ptr %231, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [4 x i32], ptr %229, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %234, align 4, !tbaa !9
  br label %264

237:                                              ; preds = %224
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %238

238:                                              ; preds = %260, %237
  %239 = load i32, ptr %9, align 4, !tbaa !9
  %240 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 21
  %241 = load i32, ptr %240, align 8, !tbaa !22
  %242 = icmp slt i32 %239, %241
  br i1 %242, label %243, label %263

243:                                              ; preds = %238
  %244 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 22
  %245 = load i32, ptr %9, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [4 x i32], ptr %244, i64 0, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !9
  store i32 %248, ptr %10, align 4, !tbaa !9
  %249 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 16
  %250 = load i32, ptr %10, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [4 x i32], ptr %249, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %16, i32 0, i32 47
  %255 = load i32, ptr %10, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [4 x i32], ptr %254, i64 0, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = add nsw i32 %258, %253
  store i32 %259, ptr %257, align 4, !tbaa !9
  br label %260

260:                                              ; preds = %243
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %9, align 4, !tbaa !9
  br label %238, !llvm.loop !25

263:                                              ; preds = %238
  br label %264

264:                                              ; preds = %263, %228
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4jpgd12jpeg_decoder14coeff_buf_getpEPNS0_9coeff_bufEii(ptr noundef nonnull align 8 dereferenceable(13523), ptr noundef, i32 noundef, i32 noundef) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress noreturn 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { nounwind }
attributes #7 = { noreturn }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 596}
!12 = !{!"_ZTSN4jpgd12jpeg_decoderE", !7, i64 0, !10, i64 200, !6, i64 208, !10, i64 216, !10, i64 220, !6, i64 224, !10, i64 232, !7, i64 236, !7, i64 248, !7, i64 312, !7, i64 376, !10, i64 408, !10, i64 412, !7, i64 416, !7, i64 432, !7, i64 448, !7, i64 464, !7, i64 480, !7, i64 496, !10, i64 512, !7, i64 516, !7, i64 532, !7, i64 548, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !7, i64 604, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !7, i64 672, !7, i64 736, !7, i64 768, !10, i64 800, !7, i64 804, !6, i64 824, !10, i64 832, !10, i64 836, !7, i64 840, !7, i64 904, !7, i64 9224, !10, i64 9288, !10, i64 9292, !10, i64 9296, !10, i64 9300, !10, i64 9304, !10, i64 9308, !10, i64 9312, !10, i64 9316, !7, i64 9320, !6, i64 9336, !7, i64 9344, !6, i64 9384, !6, i64 9392, !7, i64 9400, !7, i64 10424, !7, i64 11448, !7, i64 12472, !6, i64 13496, !6, i64 13504, !13, i64 13512, !10, i64 13516, !14, i64 13520, !14, i64 13521, !14, i64 13522}
!13 = !{!"_ZTSN4jpgd11jpgd_statusE", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !10, i64 588}
!16 = !{!12, !6, i64 9336}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!12, !10, i64 512}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}


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

@_ZN4jpgdL5g_ZAGE = external hidden local_unnamed_addr global [64 x i32], align 16

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

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

; Function Attrs: mustprogress noreturn uwtable
declare dso_local void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4jpgd12jpeg_decoder13transform_mcuEi(ptr noundef nonnull align 8 dereferenceable(13523), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder13load_next_rowEv(ptr noundef nonnull align 8 dereferenceable(13523) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca [4 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  %3 = getelementptr inbounds i8, ptr %0, i64 596
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.preheader67.lr.ph, label %._crit_edge79

.preheader67.lr.ph:                               ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 588
  %7 = getelementptr inbounds i8, ptr %0, i64 604
  %8 = getelementptr inbounds i8, ptr %0, i64 448
  %9 = getelementptr inbounds i8, ptr %0, i64 376
  %10 = getelementptr inbounds i8, ptr %0, i64 9336
  %11 = getelementptr inbounds i8, ptr %0, i64 768
  %12 = getelementptr inbounds i8, ptr %0, i64 804
  %13 = getelementptr inbounds i8, ptr %0, i64 736
  %14 = getelementptr inbounds i8, ptr %0, i64 9344
  %15 = getelementptr inbounds i8, ptr %0, i64 512
  %16 = getelementptr inbounds i8, ptr %0, i64 416
  %17 = getelementptr inbounds i8, ptr %0, i64 432
  br label %.preheader67

.preheader67:                                     ; preds = %.preheader67.lr.ph, %._crit_edge76
  %.05278 = phi i32 [ 0, %.preheader67.lr.ph ], [ %133, %._crit_edge76 ]
  %18 = load i32, ptr %6, align 4, !tbaa !13
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph75, label %._crit_edge76

.lr.ph75:                                         ; preds = %.preheader67, %129
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %129 ], [ 0, %.preheader67 ]
  %.05374 = phi i32 [ %.154, %129 ], [ 0, %.preheader67 ]
  %.05573 = phi i32 [ %.156, %129 ], [ 0, %.preheader67 ]
  %20 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %indvars.iv83
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !14
  %25 = icmp sgt i32 %24, 3
  br i1 %25, label %26, label %27

26:                                               ; preds = %.lr.ph75
  tail call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %0, i32 noundef -230) #7
  unreachable

27:                                               ; preds = %.lr.ph75
  %28 = sext i32 %24 to i64
  %29 = getelementptr inbounds [4 x ptr], ptr %9, i64 0, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = load ptr, ptr %10, align 8, !tbaa !16
  %.idx = shl nsw i64 %indvars.iv83, 7
  %32 = getelementptr inbounds i8, ptr %31, i64 %.idx
  %33 = getelementptr inbounds [4 x ptr], ptr %11, i64 0, i64 %22
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 %22
  %36 = load i32, ptr %35, align 4, !tbaa !14
  %37 = add nsw i32 %36, %.05573
  %38 = getelementptr inbounds [4 x i32], ptr %12, i64 0, i64 %22
  %39 = load i32, ptr %38, align 4, !tbaa !14
  %40 = add nsw i32 %39, %.05374
  %41 = tail call noundef ptr @_ZN4jpgd12jpeg_decoder14coeff_buf_getpEPNS0_9coeff_bufEii(ptr noundef nonnull align 8 dereferenceable(13523) %0, ptr noundef %34, i32 noundef %37, i32 noundef %40)
  %42 = getelementptr inbounds [4 x ptr], ptr %13, i64 0, i64 %22
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = load i32, ptr %38, align 4, !tbaa !14
  %45 = add nsw i32 %44, %.05374
  %46 = tail call noundef ptr @_ZN4jpgd12jpeg_decoder14coeff_buf_getpEPNS0_9coeff_bufEii(ptr noundef nonnull align 8 dereferenceable(13523) %0, ptr noundef %43, i32 noundef %37, i32 noundef %45)
  %47 = load i16, ptr %46, align 2, !tbaa !17
  store i16 %47, ptr %32, align 2, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %32, i64 2
  %49 = getelementptr inbounds i8, ptr %41, i64 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(126) %48, ptr noundef nonnull align 2 dereferenceable(126) %49, i64 126, i1 false)
  br label %50

50:                                               ; preds = %73, %27
  %.069 = phi i32 [ 63, %27 ], [ %74, %73 ]
  %51 = zext nneg i32 %.069 to i64
  %52 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !14
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i16, ptr %32, i64 %54
  %56 = load i16, ptr %55, align 2, !tbaa !17
  %.not = icmp eq i16 %56, 0
  br i1 %.not, label %57, label %77

57:                                               ; preds = %50
  %58 = add nsw i32 %.069, -1
  %59 = zext nneg i32 %58 to i64
  %60 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !14
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i16, ptr %32, i64 %62
  %64 = load i16, ptr %63, align 2, !tbaa !17
  %.not.1 = icmp eq i16 %64, 0
  br i1 %.not.1, label %65, label %77

65:                                               ; preds = %57
  %66 = add nsw i32 %.069, -2
  %67 = zext nneg i32 %66 to i64
  %68 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !14
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i16, ptr %32, i64 %70
  %72 = load i16, ptr %71, align 2, !tbaa !17
  %.not.2 = icmp eq i16 %72, 0
  br i1 %.not.2, label %73, label %77

73:                                               ; preds = %65
  %74 = add nsw i32 %.069, -3
  %75 = icmp ugt i32 %66, 1
  br i1 %75, label %50, label %.thread, !llvm.loop !19

.thread:                                          ; preds = %73
  %76 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %indvars.iv83
  store i32 1, ptr %76, align 4, !tbaa !14
  br label %.lr.ph.preheader

77:                                               ; preds = %65, %57, %50
  %.069.lcssa = phi i32 [ %.069, %50 ], [ %58, %57 ], [ %66, %65 ]
  %78 = add nuw nsw i32 %.069.lcssa, 1
  %79 = getelementptr inbounds [10 x i32], ptr %14, i64 0, i64 %indvars.iv83
  store i32 %78, ptr %79, align 4, !tbaa !14
  %80 = icmp sgt i32 %.069.lcssa, -1
  br i1 %80, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.thread, %77
  %.0.lcssa90 = phi i32 [ 0, %.thread ], [ %.069.lcssa, %77 ]
  %81 = zext nneg i32 %.0.lcssa90 to i64
  %82 = and i64 %81, 1
  %lcmp.mod.not.not = icmp eq i64 %82, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph.prol, label %.lr.ph.prol.loopexit

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %83 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %81
  %84 = load i32, ptr %83, align 4, !tbaa !14
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i16, ptr %32, i64 %85
  %87 = load i16, ptr %86, align 2, !tbaa !17
  %.not66.prol = icmp eq i16 %87, 0
  br i1 %.not66.prol, label %.lr.ph.prol.loopexit.unr-lcssa, label %88

88:                                               ; preds = %.lr.ph.prol
  %89 = getelementptr inbounds i16, ptr %30, i64 %81
  %90 = load i16, ptr %89, align 2, !tbaa !17
  %91 = mul i16 %90, %87
  store i16 %91, ptr %86, align 2, !tbaa !17
  br label %.lr.ph.prol.loopexit.unr-lcssa

.lr.ph.prol.loopexit.unr-lcssa:                   ; preds = %88, %.lr.ph.prol
  %indvars.iv.next.prol = add nsw i64 %81, -1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol.loopexit.unr-lcssa, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %81, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol.loopexit.unr-lcssa ]
  %92 = icmp eq i32 %.0.lcssa90, 0
  br i1 %92, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %111
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %111 ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %93 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %indvars.iv
  %94 = load i32, ptr %93, align 4, !tbaa !14
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i16, ptr %32, i64 %95
  %97 = load i16, ptr %96, align 2, !tbaa !17
  %.not66 = icmp eq i16 %97, 0
  br i1 %.not66, label %.lr.ph.1, label %98

98:                                               ; preds = %.lr.ph
  %99 = getelementptr inbounds i16, ptr %30, i64 %indvars.iv
  %100 = load i16, ptr %99, align 2, !tbaa !17
  %101 = mul i16 %100, %97
  store i16 %101, ptr %96, align 2, !tbaa !17
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %98
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %102 = getelementptr inbounds [64 x i32], ptr @_ZN4jpgdL5g_ZAGE, i64 0, i64 %indvars.iv.next
  %103 = load i32, ptr %102, align 4, !tbaa !14
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i16, ptr %32, i64 %104
  %106 = load i16, ptr %105, align 2, !tbaa !17
  %.not66.1 = icmp eq i16 %106, 0
  br i1 %.not66.1, label %111, label %107

107:                                              ; preds = %.lr.ph.1
  %108 = getelementptr inbounds i16, ptr %30, i64 %indvars.iv.next
  %109 = load i16, ptr %108, align 2, !tbaa !17
  %110 = mul i16 %109, %106
  store i16 %110, ptr %105, align 2, !tbaa !17
  br label %111

111:                                              ; preds = %107, %.lr.ph.1
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, -2
  %112 = icmp sgt i64 %indvars.iv, 1
  br i1 %112, label %.lr.ph, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %111, %77
  %113 = load i32, ptr %15, align 8, !tbaa !22
  %114 = icmp eq i32 %113, 1
  br i1 %114, label %115, label %117

115:                                              ; preds = %._crit_edge
  %116 = add nsw i32 %36, 1
  br label %.sink.split

117:                                              ; preds = %._crit_edge
  %118 = add nsw i32 %.05573, 1
  %119 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %22
  %120 = load i32, ptr %119, align 4, !tbaa !14
  %121 = icmp eq i32 %118, %120
  br i1 %121, label %122, label %129

122:                                              ; preds = %117
  %123 = add nsw i32 %.05374, 1
  %124 = getelementptr inbounds [4 x i32], ptr %17, i64 0, i64 %22
  %125 = load i32, ptr %124, align 4, !tbaa !14
  %126 = icmp eq i32 %123, %125
  br i1 %126, label %127, label %129

127:                                              ; preds = %122
  %128 = add nsw i32 %118, %36
  br label %.sink.split

.sink.split:                                      ; preds = %115, %127
  %.sink = phi i32 [ %128, %127 ], [ %116, %115 ]
  %.156.ph = phi i32 [ 0, %127 ], [ %.05573, %115 ]
  %.154.ph = phi i32 [ 0, %127 ], [ %.05374, %115 ]
  store i32 %.sink, ptr %35, align 4, !tbaa !14
  br label %129

129:                                              ; preds = %.sink.split, %117, %122
  %.156 = phi i32 [ 0, %122 ], [ %118, %117 ], [ %.156.ph, %.sink.split ]
  %.154 = phi i32 [ %123, %122 ], [ %.05374, %117 ], [ %.154.ph, %.sink.split ]
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %130 = load i32, ptr %6, align 4, !tbaa !13
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %indvars.iv.next84, %131
  br i1 %132, label %.lr.ph75, label %._crit_edge76, !llvm.loop !23

._crit_edge76:                                    ; preds = %129, %.preheader67
  tail call void @_ZN4jpgd12jpeg_decoder13transform_mcuEi(ptr noundef nonnull align 8 dereferenceable(13523) %0, i32 noundef %.05278)
  %133 = add nuw nsw i32 %.05278, 1
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %.preheader67, label %._crit_edge79, !llvm.loop !24

._crit_edge79:                                    ; preds = %._crit_edge76, %1
  %136 = getelementptr inbounds i8, ptr %0, i64 512
  %137 = load i32, ptr %136, align 8, !tbaa !22
  %138 = icmp eq i32 %137, 1
  br i1 %138, label %143, label %.preheader

.preheader:                                       ; preds = %._crit_edge79
  %139 = icmp sgt i32 %137, 0
  br i1 %139, label %.lr.ph81, label %.loopexit

.lr.ph81:                                         ; preds = %.preheader
  %140 = getelementptr inbounds i8, ptr %0, i64 516
  %141 = getelementptr inbounds i8, ptr %0, i64 432
  %142 = getelementptr inbounds i8, ptr %0, i64 804
  br label %151

143:                                              ; preds = %._crit_edge79
  %144 = getelementptr inbounds i8, ptr %0, i64 804
  %145 = getelementptr inbounds i8, ptr %0, i64 516
  %146 = load i32, ptr %145, align 4, !tbaa !14
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [4 x i32], ptr %144, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !14
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %148, align 4, !tbaa !14
  br label %.loopexit

151:                                              ; preds = %.lr.ph81, %151
  %indvars.iv86 = phi i64 [ 0, %.lr.ph81 ], [ %indvars.iv.next87, %151 ]
  %152 = getelementptr inbounds [4 x i32], ptr %140, i64 0, i64 %indvars.iv86
  %153 = load i32, ptr %152, align 4, !tbaa !14
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [4 x i32], ptr %141, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !14
  %157 = getelementptr inbounds [4 x i32], ptr %142, i64 0, i64 %154
  %158 = load i32, ptr %157, align 4, !tbaa !14
  %159 = add nsw i32 %158, %156
  store i32 %159, ptr %157, align 4, !tbaa !14
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %160 = load i32, ptr %136, align 8, !tbaa !22
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next87, %161
  br i1 %162, label %151, label %.loopexit, !llvm.loop !25

.loopexit:                                        ; preds = %151, %.preheader, %143
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4jpgd12jpeg_decoder14coeff_buf_getpEPNS0_9coeff_bufEii(ptr noundef nonnull align 8 dereferenceable(13523), ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress noreturn 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { nounwind }
attributes #7 = { noreturn }

!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, !9, i64 596}
!6 = !{!"_ZTSN4jpgd12jpeg_decoderE", !7, i64 0, !9, i64 200, !10, i64 208, !9, i64 216, !9, i64 220, !10, i64 224, !9, i64 232, !7, i64 236, !7, i64 248, !7, i64 312, !7, i64 376, !9, i64 408, !9, i64 412, !7, i64 416, !7, i64 432, !7, i64 448, !7, i64 464, !7, i64 480, !7, i64 496, !9, i64 512, !7, i64 516, !7, i64 532, !7, i64 548, !9, i64 564, !9, i64 568, !9, i64 572, !9, i64 576, !9, i64 580, !9, i64 584, !9, i64 588, !9, i64 592, !9, i64 596, !9, i64 600, !7, i64 604, !9, i64 644, !9, i64 648, !9, i64 652, !9, i64 656, !9, i64 660, !9, i64 664, !7, i64 672, !7, i64 736, !7, i64 768, !9, i64 800, !7, i64 804, !10, i64 824, !9, i64 832, !9, i64 836, !7, i64 840, !7, i64 904, !7, i64 9224, !9, i64 9288, !9, i64 9292, !9, i64 9296, !9, i64 9300, !9, i64 9304, !9, i64 9308, !9, i64 9312, !9, i64 9316, !7, i64 9320, !10, i64 9336, !7, i64 9344, !10, i64 9384, !10, i64 9392, !7, i64 9400, !7, i64 10424, !7, i64 11448, !7, i64 12472, !10, i64 13496, !10, i64 13504, !11, i64 13512, !9, i64 13516, !12, i64 13520, !12, i64 13521, !12, i64 13522}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"_ZTSN4jpgd11jpgd_statusE", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!6, !9, i64 588}
!14 = !{!9, !9, i64 0}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !10, i64 9336}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!6, !9, i64 512}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}


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