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

; 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] }
%"struct.jpgd::jpeg_decoder::huff_tables" = type { i8, [256 x i32], [256 x i32], [256 x i8], [512 x i32] }

@.str.1 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder15make_huff_tableEiPNS0_11huff_tablesE = external hidden unnamed_addr constant [61 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder15make_huff_tableEiPNS0_11huff_tablesE(ptr noundef nonnull align 8 dereferenceable(13523) %0, i32 noundef %1, ptr noundef %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [258 x i8], align 16
  %12 = alloca [258 x i32], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 258, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 1032, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %26 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %25, i32 0, i32 8
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [8 x i8], ptr %26, i64 0, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !11
  %31 = zext i8 %30 to i32
  %32 = icmp ne i32 %31, 0
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %33, i32 0, i32 0
  %35 = zext i1 %32 to i8
  store i8 %35, ptr %34, align 4, !tbaa !12
  store i32 0, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %68, %3
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = icmp sle i32 %37, 16
  br i1 %38, label %39, label %71

39:                                               ; preds = %36
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %64, %39
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %25, i32 0, i32 10
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [8 x ptr], ptr %42, i64 0, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %46, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !11
  %51 = zext i8 %50 to i32
  %52 = icmp sle i32 %41, %51
  br i1 %52, label %53, label %67

53:                                               ; preds = %40
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = icmp sge i32 %54, 257
  br i1 %55, label %56, label %57

56:                                               ; preds = %53
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %25, i32 noundef -230) #6
  unreachable

57:                                               ; preds = %53
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = trunc i32 %58 to i8
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %60 to i64
  %63 = getelementptr inbounds [258 x i8], ptr %11, i64 0, i64 %62
  store i8 %59, ptr %63, align 1, !tbaa !11
  br label %64

64:                                               ; preds = %57
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %8, align 4, !tbaa !9
  br label %40, !llvm.loop !15

67:                                               ; preds = %40
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %9, align 4, !tbaa !9
  br label %36, !llvm.loop !17

71:                                               ; preds = %36
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = icmp slt i32 %72, 258
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  br label %77

75:                                               ; preds = %71
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 2257, ptr noundef @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder15make_huff_tableEiPNS0_11huff_tablesE) #7
  unreachable

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76, %74
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [258 x i8], ptr %11, i64 0, i64 %79
  store i8 0, ptr %80, align 1, !tbaa !11
  %81 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %81, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %82 = getelementptr inbounds [258 x i8], ptr %11, i64 0, i64 0
  %83 = load i8, ptr %82, align 16, !tbaa !11
  %84 = zext i8 %83 to i32
  store i32 %84, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %112, %77
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [258 x i8], ptr %11, i64 0, i64 %87
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = icmp ne i8 %89, 0
  br i1 %90, label %91, label %117

91:                                               ; preds = %85
  br label %92

92:                                               ; preds = %104, %91
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [258 x i8], ptr %11, i64 0, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !11
  %97 = zext i8 %96 to i32
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = icmp eq i32 %97, %98
  br i1 %99, label %100, label %112

100:                                              ; preds = %92
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = icmp sge i32 %101, 257
  br i1 %102, label %103, label %104

103:                                              ; preds = %100
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %25, i32 noundef -230) #6
  unreachable

104:                                              ; preds = %100
  %105 = load i32, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %7, align 4, !tbaa !9
  %108 = sext i32 %106 to i64
  %109 = getelementptr inbounds [258 x i32], ptr %12, i64 0, i64 %108
  store i32 %105, ptr %109, align 4, !tbaa !9
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = add i32 %110, 1
  store i32 %111, ptr %13, align 4, !tbaa !9
  br label %92, !llvm.loop !18

112:                                              ; preds = %92
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = shl i32 %113, 1
  store i32 %114, ptr %13, align 4, !tbaa !9
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %10, align 4, !tbaa !9
  br label %85, !llvm.loop !19

117:                                              ; preds = %85
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %118, i32 0, i32 1
  %120 = getelementptr inbounds [256 x i32], ptr %119, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %120, i8 0, i64 1024, i1 false)
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds [256 x i32], ptr %122, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %123, i8 0, i64 1024, i1 false)
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %124, i32 0, i32 4
  %126 = getelementptr inbounds [512 x i32], ptr %125, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %126, i8 0, i64 2048, i1 false)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %127, i32 0, i32 3
  %129 = getelementptr inbounds [256 x i8], ptr %128, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %129, i8 0, i64 256, i1 false)
  store i32 -1, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %359, %117
  %131 = load i32, ptr %7, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %134, label %362

134:                                              ; preds = %130
  %135 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %25, i32 0, i32 11
  %136 = load i32, ptr %5, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [8 x ptr], ptr %135, i64 0, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load i32, ptr %7, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %139, i64 %141
  %143 = load i8, ptr %142, align 1, !tbaa !11
  %144 = zext i8 %143 to i32
  store i32 %144, ptr %8, align 4, !tbaa !9
  %145 = load i32, ptr %7, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [258 x i32], ptr %12, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !9
  store i32 %148, ptr %13, align 4, !tbaa !9
  %149 = load i32, ptr %7, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [258 x i8], ptr %11, i64 0, i64 %150
  %152 = load i8, ptr %151, align 1, !tbaa !11
  %153 = zext i8 %152 to i32
  store i32 %153, ptr %15, align 4, !tbaa !9
  %154 = load i32, ptr %8, align 4, !tbaa !9
  %155 = icmp slt i32 %154, 256
  br i1 %155, label %156, label %157

156:                                              ; preds = %134
  br label %159

157:                                              ; preds = %134
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 2296, ptr noundef @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder15make_huff_tableEiPNS0_11huff_tablesE) #7
  unreachable

158:                                              ; No predecessors!
  br label %159

159:                                              ; preds = %158, %156
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = trunc i32 %160 to i8
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %162, i32 0, i32 3
  %164 = load i32, ptr %8, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [256 x i8], ptr %163, i64 0, i64 %165
  store i8 %161, ptr %166, align 1, !tbaa !11
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = icmp sle i32 %167, 8
  br i1 %168, label %169, label %253

169:                                              ; preds = %159
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = sub nsw i32 8, %170
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = shl i32 %172, %171
  store i32 %173, ptr %13, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = sub nsw i32 8, %174
  %176 = shl i32 1, %175
  store i32 %176, ptr %9, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %249, %169
  %178 = load i32, ptr %9, align 4, !tbaa !9
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %180, label %252

180:                                              ; preds = %177
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = icmp uge i32 %181, 256
  br i1 %182, label %183, label %184

183:                                              ; preds = %180
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %25, i32 noundef -230) #6
  unreachable

184:                                              ; preds = %180
  %185 = load i32, ptr %8, align 4, !tbaa !9
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %186, i32 0, i32 1
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds [256 x i32], ptr %187, i64 0, i64 %189
  store i32 %185, ptr %190, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  store i8 0, ptr %19, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %191 = load i32, ptr %8, align 4, !tbaa !9
  %192 = and i32 %191, 15
  store i32 %192, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %193 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %193, ptr %22, align 4, !tbaa !9
  %194 = load i32, ptr %21, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %219

196:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = load i32, ptr %21, align 4, !tbaa !9
  %199 = add nsw i32 %197, %198
  store i32 %199, ptr %23, align 4, !tbaa !9
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = icmp sle i32 %200, 8
  br i1 %201, label %202, label %218

202:                                              ; preds = %196
  store i8 1, ptr %19, align 1, !tbaa !20
  %203 = load i32, ptr %21, align 4, !tbaa !9
  %204 = shl i32 1, %203
  %205 = sub nsw i32 %204, 1
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %23, align 4, !tbaa !9
  %208 = sub nsw i32 8, %207
  %209 = lshr i32 %206, %208
  %210 = and i32 %205, %209
  store i32 %210, ptr %20, align 4, !tbaa !9
  %211 = load i32, ptr %20, align 4, !tbaa !9
  %212 = icmp sgt i32 %211, 32767
  br i1 %212, label %213, label %214

213:                                              ; preds = %202
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %25, i32 noundef -230) #6
  unreachable

214:                                              ; preds = %202
  %215 = load i32, ptr %21, align 4, !tbaa !9
  %216 = load i32, ptr %22, align 4, !tbaa !9
  %217 = add nsw i32 %216, %215
  store i32 %217, ptr %22, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %214, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %219

219:                                              ; preds = %218, %184
  %220 = load i8, ptr %19, align 1, !tbaa !20, !range !21, !noundef !22
  %221 = trunc i8 %220 to i1
  br i1 %221, label %232, label %222

222:                                              ; preds = %219
  %223 = load i32, ptr %8, align 4, !tbaa !9
  %224 = load i32, ptr %22, align 4, !tbaa !9
  %225 = shl i32 %224, 8
  %226 = or i32 %223, %225
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %227, i32 0, i32 2
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds [256 x i32], ptr %228, i64 0, i64 %230
  store i32 %226, ptr %231, align 4, !tbaa !9
  br label %246

232:                                              ; preds = %219
  %233 = load i32, ptr %8, align 4, !tbaa !9
  %234 = or i32 %233, 32768
  %235 = load i32, ptr %20, align 4, !tbaa !9
  %236 = shl i32 %235, 16
  %237 = or i32 %234, %236
  %238 = load i32, ptr %22, align 4, !tbaa !9
  %239 = shl i32 %238, 8
  %240 = or i32 %237, %239
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %241, i32 0, i32 2
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = getelementptr inbounds [256 x i32], ptr %242, i64 0, i64 %244
  store i32 %240, ptr %245, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %232, %222
  %247 = load i32, ptr %13, align 4, !tbaa !9
  %248 = add i32 %247, 1
  store i32 %248, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %249

249:                                              ; preds = %246
  %250 = load i32, ptr %9, align 4, !tbaa !9
  %251 = add nsw i32 %250, -1
  store i32 %251, ptr %9, align 4, !tbaa !9
  br label %177, !llvm.loop !23

252:                                              ; preds = %177
  br label %359

253:                                              ; preds = %159
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = sub nsw i32 %255, 8
  %257 = lshr i32 %254, %256
  %258 = and i32 %257, 255
  store i32 %258, ptr %14, align 4, !tbaa !9
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %259, i32 0, i32 1
  %261 = load i32, ptr %14, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds [256 x i32], ptr %260, i64 0, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !9
  store i32 %264, ptr %18, align 4, !tbaa !9
  %265 = load i32, ptr %18, align 4, !tbaa !9
  %266 = icmp eq i32 %265, 0
  br i1 %266, label %267, label %282

267:                                              ; preds = %253
  %268 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %268, ptr %18, align 4, !tbaa !9
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %269, i32 0, i32 1
  %271 = load i32, ptr %14, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = getelementptr inbounds [256 x i32], ptr %270, i64 0, i64 %272
  store i32 %268, ptr %273, align 4, !tbaa !9
  %274 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %274, ptr %18, align 4, !tbaa !9
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %275, i32 0, i32 2
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = getelementptr inbounds [256 x i32], ptr %276, i64 0, i64 %278
  store i32 %274, ptr %279, align 4, !tbaa !9
  %280 = load i32, ptr %17, align 4, !tbaa !9
  %281 = sub nsw i32 %280, 2
  store i32 %281, ptr %17, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %267, %253
  %283 = load i32, ptr %15, align 4, !tbaa !9
  %284 = sub nsw i32 %283, 8
  %285 = sub nsw i32 16, %284
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = shl i32 %286, %285
  store i32 %287, ptr %13, align 4, !tbaa !9
  %288 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %288, ptr %9, align 4, !tbaa !9
  br label %289

289:                                              ; preds = %334, %282
  %290 = load i32, ptr %9, align 4, !tbaa !9
  %291 = icmp sgt i32 %290, 9
  br i1 %291, label %292, label %337

292:                                              ; preds = %289
  %293 = load i32, ptr %13, align 4, !tbaa !9
  %294 = and i32 %293, 32768
  %295 = icmp eq i32 %294, 0
  br i1 %295, label %296, label %299

296:                                              ; preds = %292
  %297 = load i32, ptr %18, align 4, !tbaa !9
  %298 = add nsw i32 %297, -1
  store i32 %298, ptr %18, align 4, !tbaa !9
  br label %299

299:                                              ; preds = %296, %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %300 = load i32, ptr %18, align 4, !tbaa !9
  %301 = sub nsw i32 0, %300
  %302 = sub nsw i32 %301, 1
  store i32 %302, ptr %24, align 4, !tbaa !9
  %303 = load i32, ptr %24, align 4, !tbaa !9
  %304 = icmp uge i32 %303, 512
  br i1 %304, label %305, label %306

305:                                              ; preds = %299
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %25, i32 noundef -230) #6
  unreachable

306:                                              ; preds = %299
  %307 = load ptr, ptr %6, align 8, !tbaa !5
  %308 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %307, i32 0, i32 4
  %309 = load i32, ptr %24, align 4, !tbaa !9
  %310 = zext i32 %309 to i64
  %311 = getelementptr inbounds [512 x i32], ptr %308, i64 0, i64 %310
  %312 = load i32, ptr %311, align 4, !tbaa !9
  %313 = icmp eq i32 %312, 0
  br i1 %313, label %314, label %324

314:                                              ; preds = %306
  %315 = load i32, ptr %17, align 4, !tbaa !9
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %316, i32 0, i32 4
  %318 = load i32, ptr %24, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = getelementptr inbounds [512 x i32], ptr %317, i64 0, i64 %319
  store i32 %315, ptr %320, align 4, !tbaa !9
  %321 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %321, ptr %18, align 4, !tbaa !9
  %322 = load i32, ptr %17, align 4, !tbaa !9
  %323 = sub nsw i32 %322, 2
  store i32 %323, ptr %17, align 4, !tbaa !9
  br label %331

324:                                              ; preds = %306
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %325, i32 0, i32 4
  %327 = load i32, ptr %24, align 4, !tbaa !9
  %328 = zext i32 %327 to i64
  %329 = getelementptr inbounds [512 x i32], ptr %326, i64 0, i64 %328
  %330 = load i32, ptr %329, align 4, !tbaa !9
  store i32 %330, ptr %18, align 4, !tbaa !9
  br label %331

331:                                              ; preds = %324, %314
  %332 = load i32, ptr %13, align 4, !tbaa !9
  %333 = shl i32 %332, 1
  store i32 %333, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %334

334:                                              ; preds = %331
  %335 = load i32, ptr %9, align 4, !tbaa !9
  %336 = add nsw i32 %335, -1
  store i32 %336, ptr %9, align 4, !tbaa !9
  br label %289, !llvm.loop !24

337:                                              ; preds = %289
  %338 = load i32, ptr %13, align 4, !tbaa !9
  %339 = and i32 %338, 32768
  %340 = icmp eq i32 %339, 0
  br i1 %340, label %341, label %344

341:                                              ; preds = %337
  %342 = load i32, ptr %18, align 4, !tbaa !9
  %343 = add nsw i32 %342, -1
  store i32 %343, ptr %18, align 4, !tbaa !9
  br label %344

344:                                              ; preds = %341, %337
  %345 = load i32, ptr %18, align 4, !tbaa !9
  %346 = sub nsw i32 0, %345
  %347 = sub nsw i32 %346, 1
  %348 = icmp sge i32 %347, 512
  br i1 %348, label %349, label %350

349:                                              ; preds = %344
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13523) %25, i32 noundef -230) #6
  unreachable

350:                                              ; preds = %344
  %351 = load i32, ptr %8, align 4, !tbaa !9
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::huff_tables", ptr %352, i32 0, i32 4
  %354 = load i32, ptr %18, align 4, !tbaa !9
  %355 = sub nsw i32 0, %354
  %356 = sub nsw i32 %355, 1
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [512 x i32], ptr %353, i64 0, i64 %357
  store i32 %351, ptr %358, align 4, !tbaa !9
  br label %359

359:                                              ; preds = %350, %252
  %360 = load i32, ptr %7, align 4, !tbaa !9
  %361 = add nsw i32 %360, 1
  store i32 %361, ptr %7, align 4, !tbaa !9
  br label %130, !llvm.loop !25

362:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1032, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 258, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

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 = { noreturn nounwind "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 #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 = { nounwind }
attributes #6 = { noreturn }
attributes #7 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN4jpgd12jpeg_decoder11huff_tablesE", !14, i64 0, !7, i64 4, !7, i64 1028, !7, i64 2052, !7, i64 2308}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!14, !14, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}


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

@.str.1 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder15make_huff_tableEiPNS0_11huff_tablesE = external hidden unnamed_addr constant [61 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder15make_huff_tableEiPNS0_11huff_tablesE(ptr noundef nonnull align 8 dereferenceable(13523) %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #4 align 2 {
  %4 = alloca [258 x i8], align 16
  %5 = alloca [258 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 258, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1032, ptr nonnull %5) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 236
  %7 = sext i32 %1 to i64
  %8 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 %7
  %9 = load i8, ptr %8, align 1, !tbaa !5
  %10 = icmp ne i8 %9, 0
  %11 = zext i1 %10 to i8
  store i8 %11, ptr %2, align 4, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 248
  %13 = getelementptr inbounds [8 x ptr], ptr %12, i64 0, i64 %7
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  br label %.preheader150

.preheader150:                                    ; preds = %3, %._crit_edge
  %indvars.iv211 = phi i64 [ 1, %3 ], [ %indvars.iv.next212, %._crit_edge ]
  %.0162 = phi i32 [ 0, %3 ], [ %.1.lcssa, %._crit_edge ]
  %15 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv211
  %16 = load i8, ptr %15, align 1, !tbaa !5
  %.not143158 = icmp eq i8 %16, 0
  br i1 %.not143158, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader150
  %17 = zext i8 %16 to i32
  %18 = trunc i64 %indvars.iv211 to i8
  %19 = sext i32 %.0162 to i64
  %smax = tail call i32 @llvm.smax.i32(i32 %.0162, i32 257)
  %wide.trip.count = zext nneg i32 %smax to i64
  %20 = sub nsw i64 %wide.trip.count, %19
  %21 = add nsw i32 %17, -1
  %22 = zext i32 %21 to i64
  %umin = tail call i64 @llvm.umin.i64(i64 %20, i64 %22)
  %min.iters.check = icmp ult i64 %umin, 32
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %23 = add nuw nsw i64 %umin, 1
  %n.mod.vf = and i64 %23, 31
  %24 = icmp eq i64 %n.mod.vf, 0
  %25 = select i1 %24, i64 32, i64 %n.mod.vf
  %n.vec = sub nsw i64 %23, %25
  %ind.end = add nsw i64 %n.vec, %19
  %.cast = trunc i64 %n.vec to i32
  %ind.end255 = add i32 %.cast, 1
  %broadcast.splatinsert = insertelement <16 x i8> poison, i8 %18, i64 0
  %broadcast.splat = shufflevector <16 x i8> %broadcast.splatinsert, <16 x i8> poison, <16 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %19
  %26 = getelementptr inbounds [258 x i8], ptr %4, i64 0, i64 %offset.idx
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  store <16 x i8> %broadcast.splat, ptr %26, align 1, !tbaa !5
  store <16 x i8> %broadcast.splat, ptr %27, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 32
  %28 = icmp eq i64 %index.next, %n.vec
  br i1 %28, label %scalar.ph.preheader, label %vector.body, !llvm.loop !13

scalar.ph.preheader:                              ; preds = %vector.body, %.lr.ph
  %indvars.iv.ph = phi i64 [ %19, %.lr.ph ], [ %ind.end, %vector.body ]
  %.0108159.ph = phi i32 [ 1, %.lr.ph ], [ %ind.end255, %vector.body ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %30
  %indvars.iv = phi i64 [ %indvars.iv.next, %30 ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.0108159 = phi i32 [ %32, %30 ], [ %.0108159.ph, %scalar.ph.preheader ]
  %exitcond = icmp eq i64 %indvars.iv, %wide.trip.count
  br i1 %exitcond, label %29, label %30

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

30:                                               ; preds = %scalar.ph
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %31 = getelementptr inbounds [258 x i8], ptr %4, i64 0, i64 %indvars.iv
  store i8 %18, ptr %31, align 1, !tbaa !5
  %32 = add nuw nsw i32 %.0108159, 1
  %exitcond210.not = icmp eq i32 %.0108159, %17
  br i1 %exitcond210.not, label %._crit_edge.loopexit, label %scalar.ph, !llvm.loop !17

._crit_edge.loopexit:                             ; preds = %30
  %33 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader150
  %.1.lcssa = phi i32 [ %.0162, %.preheader150 ], [ %33, %._crit_edge.loopexit ]
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %exitcond214.not = icmp eq i64 %indvars.iv.next212, 17
  br i1 %exitcond214.not, label %34, label %.preheader150, !llvm.loop !18

34:                                               ; preds = %._crit_edge
  %35 = icmp slt i32 %.1.lcssa, 258
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 2257, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder15make_huff_tableEiPNS0_11huff_tablesE) #8
  unreachable

37:                                               ; preds = %34
  %38 = sext i32 %.1.lcssa to i64
  %39 = getelementptr inbounds [258 x i8], ptr %4, i64 0, i64 %38
  store i8 0, ptr %39, align 1, !tbaa !5
  %40 = load i8, ptr %4, align 16, !tbaa !5
  %.not169 = icmp eq i8 %40, 0
  br i1 %.not169, label %._crit_edge173, label %.preheader.preheader

.preheader.preheader:                             ; preds = %37
  %41 = zext i8 %40 to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge166
  %42 = phi i8 [ %55, %._crit_edge166 ], [ %40, %.preheader.preheader ]
  %.2172 = phi i32 [ %.3.lcssa, %._crit_edge166 ], [ 0, %.preheader.preheader ]
  %.0128171 = phi i32 [ %57, %._crit_edge166 ], [ %41, %.preheader.preheader ]
  %.0129170 = phi i32 [ %56, %._crit_edge166 ], [ 0, %.preheader.preheader ]
  %43 = zext i8 %42 to i32
  %44 = icmp eq i32 %.0128171, %43
  br i1 %44, label %.lr.ph165.preheader, label %._crit_edge166

.lr.ph165.preheader:                              ; preds = %.preheader
  %45 = sext i32 %.2172 to i64
  %smax218 = tail call i32 @llvm.smax.i32(i32 %.2172, i32 257)
  %wide.trip.count219 = zext nneg i32 %smax218 to i64
  br label %.lr.ph165

.lr.ph165:                                        ; preds = %.lr.ph165.preheader, %47
  %indvars.iv215 = phi i64 [ %45, %.lr.ph165.preheader ], [ %indvars.iv.next216, %47 ]
  %.1130163 = phi i32 [ %.0129170, %.lr.ph165.preheader ], [ %49, %47 ]
  %exitcond220 = icmp eq i64 %indvars.iv215, %wide.trip.count219
  br i1 %exitcond220, label %46, label %47

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

47:                                               ; preds = %.lr.ph165
  %indvars.iv.next216 = add nsw i64 %indvars.iv215, 1
  %48 = getelementptr inbounds [258 x i32], ptr %5, i64 0, i64 %indvars.iv215
  store i32 %.1130163, ptr %48, align 4, !tbaa !19
  %49 = add i32 %.1130163, 1
  %50 = getelementptr inbounds [258 x i8], ptr %4, i64 0, i64 %indvars.iv.next216
  %51 = load i8, ptr %50, align 1, !tbaa !5
  %52 = zext i8 %51 to i32
  %53 = icmp eq i32 %.0128171, %52
  br i1 %53, label %.lr.ph165, label %._crit_edge166.loopexit, !llvm.loop !21

._crit_edge166.loopexit:                          ; preds = %47
  %54 = trunc nsw i64 %indvars.iv.next216 to i32
  %sext244 = shl i64 %indvars.iv.next216, 32
  %.pre = ashr exact i64 %sext244, 32
  %.phi.trans.insert = getelementptr inbounds [258 x i8], ptr %4, i64 0, i64 %.pre
  %.pre243 = load i8, ptr %.phi.trans.insert, align 1, !tbaa !5
  br label %._crit_edge166

._crit_edge166:                                   ; preds = %._crit_edge166.loopexit, %.preheader
  %55 = phi i8 [ %.pre243, %._crit_edge166.loopexit ], [ %42, %.preheader ]
  %.1130.lcssa = phi i32 [ %49, %._crit_edge166.loopexit ], [ %.0129170, %.preheader ]
  %.3.lcssa = phi i32 [ %54, %._crit_edge166.loopexit ], [ %.2172, %.preheader ]
  %56 = shl i32 %.1130.lcssa, 1
  %57 = add nuw nsw i32 %.0128171, 1
  %.not = icmp eq i8 %55, 0
  br i1 %.not, label %._crit_edge173, label %.preheader, !llvm.loop !22

._crit_edge173:                                   ; preds = %._crit_edge166, %37
  %58 = getelementptr inbounds i8, ptr %2, i64 4
  %59 = getelementptr inbounds i8, ptr %2, i64 1028
  %60 = getelementptr inbounds i8, ptr %2, i64 2308
  %61 = getelementptr inbounds i8, ptr %2, i64 2052
  %62 = icmp sgt i32 %.1.lcssa, 0
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(4352) %58, i8 0, i64 4352, i1 false)
  br i1 %62, label %.lr.ph194, label %._crit_edge195

.lr.ph194:                                        ; preds = %._crit_edge173
  %63 = getelementptr inbounds i8, ptr %0, i64 312
  %64 = getelementptr inbounds [8 x ptr], ptr %63, i64 0, i64 %7
  %wide.trip.count241 = zext nneg i32 %.1.lcssa to i64
  br label %65

65:                                               ; preds = %.lr.ph194, %.loopexit
  %indvars.iv238 = phi i64 [ 0, %.lr.ph194 ], [ %indvars.iv.next239, %.loopexit ]
  %.0123191 = phi i32 [ -1, %.lr.ph194 ], [ %.4127, %.loopexit ]
  %66 = load ptr, ptr %64, align 8, !tbaa !11
  %67 = getelementptr inbounds i8, ptr %66, i64 %indvars.iv238
  %68 = load i8, ptr %67, align 1, !tbaa !5
  %.fr199 = freeze i8 %68
  %69 = zext i8 %.fr199 to i32
  %70 = getelementptr inbounds [258 x i32], ptr %5, i64 0, i64 %indvars.iv238
  %71 = load i32, ptr %70, align 4, !tbaa !19
  %72 = getelementptr inbounds [258 x i8], ptr %4, i64 0, i64 %indvars.iv238
  %73 = load i8, ptr %72, align 1, !tbaa !5
  %.fr201 = freeze i8 %73
  %74 = zext i8 %.fr201 to i32
  %75 = zext i8 %.fr199 to i64
  %76 = getelementptr inbounds [256 x i8], ptr %61, i64 0, i64 %75
  store i8 %.fr201, ptr %76, align 1, !tbaa !5
  %77 = icmp ult i8 %.fr201, 9
  br i1 %77, label %78, label %147

78:                                               ; preds = %65
  %79 = sub nuw nsw i32 8, %74
  %80 = shl i32 %71, %79
  %81 = shl nuw nsw i32 1, %79
  %.fr323 = freeze i32 %81
  %82 = and i32 %69, 15
  %.not142 = icmp eq i32 %82, 0
  %83 = add nuw nsw i32 %82, %74
  %notmask = shl nsw i32 -1, %82
  %84 = xor i32 %notmask, -1
  %85 = sub nuw nsw i32 8, %83
  %86 = shl nuw nsw i32 %83, 8
  %87 = shl nuw nsw i32 %74, 8
  %88 = or disjoint i32 %87, %69
  br i1 %.not142, label %.split.us.preheader, label %.split

.split.us.preheader:                              ; preds = %78
  %89 = zext i32 %80 to i64
  %umax235 = tail call i32 @llvm.umax.i32(i32 %80, i32 256)
  %wide.trip.count236 = zext i32 %umax235 to i64
  %smin = tail call i32 @llvm.smin.i32(i32 %.fr323, i32 1)
  %90 = sub i32 %.fr323, %smin
  %91 = zext i32 %90 to i64
  %92 = sub nsw i64 %wide.trip.count236, %89
  %umin257 = tail call i64 @llvm.umin.i64(i64 %91, i64 %92)
  %min.iters.check260 = icmp ult i64 %umin257, 4
  br i1 %min.iters.check260, label %.split.us.preheader324, label %vector.ph261

vector.ph261:                                     ; preds = %.split.us.preheader
  %93 = add nuw nsw i64 %umin257, 1
  %n.mod.vf262 = and i64 %93, 3
  %94 = icmp eq i64 %n.mod.vf262, 0
  %95 = select i1 %94, i64 4, i64 %n.mod.vf262
  %n.vec263 = sub nsw i64 %93, %95
  %ind.end264 = add nsw i64 %n.vec263, %89
  %.cast266 = trunc i64 %n.vec263 to i32
  %ind.end267 = sub i32 %.fr323, %.cast266
  %broadcast.splatinsert272 = insertelement <4 x i32> poison, i32 %69, i64 0
  %broadcast.splat273 = shufflevector <4 x i32> %broadcast.splatinsert272, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert274 = insertelement <4 x i32> poison, i32 %88, i64 0
  %broadcast.splat275 = shufflevector <4 x i32> %broadcast.splatinsert274, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body269

vector.body269:                                   ; preds = %vector.body269, %vector.ph261
  %index270 = phi i64 [ 0, %vector.ph261 ], [ %index.next276, %vector.body269 ]
  %offset.idx271 = add i64 %index270, %89
  %96 = getelementptr inbounds [256 x i32], ptr %58, i64 0, i64 %offset.idx271
  store <4 x i32> %broadcast.splat273, ptr %96, align 4, !tbaa !19
  %97 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %offset.idx271
  store <4 x i32> %broadcast.splat275, ptr %97, align 4, !tbaa !19
  %index.next276 = add nuw i64 %index270, 4
  %98 = icmp eq i64 %index.next276, %n.vec263
  br i1 %98, label %.split.us.preheader324, label %vector.body269, !llvm.loop !23

.split.us.preheader324:                           ; preds = %vector.body269, %.split.us.preheader
  %indvars.iv232.ph = phi i64 [ %89, %.split.us.preheader ], [ %ind.end264, %vector.body269 ]
  %.1112186.us.ph = phi i32 [ %.fr323, %.split.us.preheader ], [ %ind.end267, %vector.body269 ]
  br label %.split.us

.split.us:                                        ; preds = %.split.us.preheader324, %99
  %indvars.iv232 = phi i64 [ %indvars.iv.next233, %99 ], [ %indvars.iv232.ph, %.split.us.preheader324 ]
  %.1112186.us = phi i32 [ %102, %99 ], [ %.1112186.us.ph, %.split.us.preheader324 ]
  %exitcond237 = icmp eq i64 %indvars.iv232, %wide.trip.count236
  br i1 %exitcond237, label %.split188.us, label %99

99:                                               ; preds = %.split.us
  %100 = getelementptr inbounds [256 x i32], ptr %58, i64 0, i64 %indvars.iv232
  store i32 %69, ptr %100, align 4, !tbaa !19
  %101 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %indvars.iv232
  store i32 %88, ptr %101, align 4, !tbaa !19
  %indvars.iv.next233 = add nuw nsw i64 %indvars.iv232, 1
  %102 = add nsw i32 %.1112186.us, -1
  %103 = icmp sgt i32 %.1112186.us, 1
  br i1 %103, label %.split.us, label %.loopexit, !llvm.loop !24

.split:                                           ; preds = %78
  %104 = icmp ult i32 %83, 9
  %105 = zext i32 %80 to i64
  %umax229 = tail call i32 @llvm.umax.i32(i32 %80, i32 256)
  %wide.trip.count230 = zext i32 %umax229 to i64
  br i1 %104, label %.split.split.us.preheader, label %.split.split.preheader

.split.split.preheader:                           ; preds = %.split
  %106 = add i32 %.fr323, -1
  %107 = zext i32 %106 to i64
  %108 = sub nsw i64 %wide.trip.count230, %105
  %umin303 = tail call i64 @llvm.umin.i64(i64 %107, i64 %108)
  %min.iters.check306 = icmp ult i64 %umin303, 4
  br i1 %min.iters.check306, label %.split.split.preheader328, label %vector.ph307

.split.split.preheader328:                        ; preds = %vector.body315, %.split.split.preheader
  %indvars.iv221.ph = phi i64 [ %105, %.split.split.preheader ], [ %ind.end310, %vector.body315 ]
  %.1112186.ph = phi i32 [ %.fr323, %.split.split.preheader ], [ %ind.end313, %vector.body315 ]
  br label %.split.split

vector.ph307:                                     ; preds = %.split.split.preheader
  %109 = add nuw nsw i64 %umin303, 1
  %n.mod.vf308 = and i64 %109, 3
  %110 = icmp eq i64 %n.mod.vf308, 0
  %111 = select i1 %110, i64 4, i64 %n.mod.vf308
  %n.vec309 = sub nsw i64 %109, %111
  %ind.end310 = add nsw i64 %n.vec309, %105
  %.cast312 = trunc i64 %n.vec309 to i32
  %ind.end313 = sub i32 %.fr323, %.cast312
  %broadcast.splatinsert318 = insertelement <4 x i32> poison, i32 %69, i64 0
  %broadcast.splat319 = shufflevector <4 x i32> %broadcast.splatinsert318, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert320 = insertelement <4 x i32> poison, i32 %88, i64 0
  %broadcast.splat321 = shufflevector <4 x i32> %broadcast.splatinsert320, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body315

vector.body315:                                   ; preds = %vector.body315, %vector.ph307
  %index316 = phi i64 [ 0, %vector.ph307 ], [ %index.next322, %vector.body315 ]
  %offset.idx317 = add i64 %index316, %105
  %112 = getelementptr inbounds [256 x i32], ptr %58, i64 0, i64 %offset.idx317
  store <4 x i32> %broadcast.splat319, ptr %112, align 4, !tbaa !19
  %113 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %offset.idx317
  store <4 x i32> %broadcast.splat321, ptr %113, align 4, !tbaa !19
  %index.next322 = add nuw i64 %index316, 4
  %114 = icmp eq i64 %index.next322, %n.vec309
  br i1 %114, label %.split.split.preheader328, label %vector.body315, !llvm.loop !25

.split.split.us.preheader:                        ; preds = %.split
  %smin277 = tail call i32 @llvm.smin.i32(i32 %.fr323, i32 1)
  %115 = sub i32 %.fr323, %smin277
  %116 = zext i32 %115 to i64
  %117 = sub nsw i64 %wide.trip.count230, %105
  %umin278 = tail call i64 @llvm.umin.i64(i64 %116, i64 %117)
  %min.iters.check281 = icmp ult i64 %umin278, 4
  br i1 %min.iters.check281, label %.split.split.us.preheader325, label %vector.ph282

vector.ph282:                                     ; preds = %.split.split.us.preheader
  %118 = add nuw nsw i64 %umin278, 1
  %n.mod.vf283 = and i64 %118, 3
  %119 = icmp eq i64 %n.mod.vf283, 0
  %120 = select i1 %119, i64 4, i64 %n.mod.vf283
  %n.vec284 = sub nsw i64 %118, %120
  %ind.end285 = add nsw i64 %n.vec284, %105
  %.cast287 = trunc i64 %n.vec284 to i32
  %ind.end288 = sub i32 %.fr323, %.cast287
  %.splatinsert = insertelement <4 x i32> poison, i32 %80, i64 0
  %.splat = shufflevector <4 x i32> %.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %induction = add <4 x i32> %.splat, <i32 0, i32 1, i32 2, i32 3>
  %broadcast.splatinsert293 = insertelement <4 x i32> poison, i32 %69, i64 0
  %broadcast.splat294 = shufflevector <4 x i32> %broadcast.splatinsert293, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert295 = insertelement <4 x i32> poison, i32 %85, i64 0
  %broadcast.splat296 = shufflevector <4 x i32> %broadcast.splatinsert295, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert297 = insertelement <4 x i32> poison, i32 %84, i64 0
  %broadcast.splat298 = shufflevector <4 x i32> %broadcast.splatinsert297, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert299 = insertelement <4 x i32> poison, i32 %86, i64 0
  %broadcast.splat300 = shufflevector <4 x i32> %broadcast.splatinsert299, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body290

vector.body290:                                   ; preds = %vector.body290, %vector.ph282
  %index291 = phi i64 [ 0, %vector.ph282 ], [ %index.next301, %vector.body290 ]
  %vec.ind = phi <4 x i32> [ %induction, %vector.ph282 ], [ %vec.ind.next, %vector.body290 ]
  %offset.idx292 = add i64 %index291, %105
  %121 = getelementptr inbounds [256 x i32], ptr %58, i64 0, i64 %offset.idx292
  store <4 x i32> %broadcast.splat294, ptr %121, align 4, !tbaa !19
  %122 = lshr <4 x i32> %vec.ind, %broadcast.splat296
  %123 = and <4 x i32> %122, %broadcast.splat298
  %124 = shl nuw nsw <4 x i32> %123, <i32 16, i32 16, i32 16, i32 16>
  %125 = or disjoint <4 x i32> %124, %broadcast.splat300
  %126 = or disjoint <4 x i32> %125, %broadcast.splat294
  %127 = or disjoint <4 x i32> %126, <i32 32768, i32 32768, i32 32768, i32 32768>
  %128 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %offset.idx292
  store <4 x i32> %127, ptr %128, align 4, !tbaa !19
  %index.next301 = add nuw i64 %index291, 4
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %129 = icmp eq i64 %index.next301, %n.vec284
  br i1 %129, label %.split.split.us.preheader325, label %vector.body290, !llvm.loop !26

.split.split.us.preheader325:                     ; preds = %vector.body290, %.split.split.us.preheader
  %indvars.iv226.ph = phi i64 [ %105, %.split.split.us.preheader ], [ %ind.end285, %vector.body290 ]
  %.1112186.us189.ph = phi i32 [ %.fr323, %.split.split.us.preheader ], [ %ind.end288, %vector.body290 ]
  br label %.split.split.us

.split.split.us:                                  ; preds = %.split.split.us.preheader325, %130
  %indvars.iv226 = phi i64 [ %indvars.iv.next227, %130 ], [ %indvars.iv226.ph, %.split.split.us.preheader325 ]
  %.1112186.us189 = phi i32 [ %140, %130 ], [ %.1112186.us189.ph, %.split.split.us.preheader325 ]
  %exitcond231 = icmp eq i64 %indvars.iv226, %wide.trip.count230
  br i1 %exitcond231, label %.split188.us, label %130

130:                                              ; preds = %.split.split.us
  %131 = getelementptr inbounds [256 x i32], ptr %58, i64 0, i64 %indvars.iv226
  store i32 %69, ptr %131, align 4, !tbaa !19
  %132 = trunc nuw i64 %indvars.iv226 to i32
  %133 = lshr i32 %132, %85
  %134 = and i32 %133, %84
  %135 = shl nuw nsw i32 %134, 16
  %136 = or disjoint i32 %135, %86
  %137 = or disjoint i32 %136, %69
  %138 = or disjoint i32 %137, 32768
  %139 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %indvars.iv226
  store i32 %138, ptr %139, align 4, !tbaa !19
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %140 = add nsw i32 %.1112186.us189, -1
  %141 = icmp sgt i32 %.1112186.us189, 1
  br i1 %141, label %.split.split.us, label %.loopexit, !llvm.loop !27

.split.split:                                     ; preds = %.split.split.preheader328, %142
  %indvars.iv221 = phi i64 [ %indvars.iv.next222, %142 ], [ %indvars.iv221.ph, %.split.split.preheader328 ]
  %.1112186 = phi i32 [ %145, %142 ], [ %.1112186.ph, %.split.split.preheader328 ]
  %exitcond225 = icmp eq i64 %indvars.iv221, %wide.trip.count230
  br i1 %exitcond225, label %.split188.us, label %142

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

142:                                              ; preds = %.split.split
  %143 = getelementptr inbounds [256 x i32], ptr %58, i64 0, i64 %indvars.iv221
  store i32 %69, ptr %143, align 4, !tbaa !19
  %144 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %indvars.iv221
  store i32 %88, ptr %144, align 4, !tbaa !19
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %145 = add nsw i32 %.1112186, -1
  %146 = icmp sgt i32 %.1112186, 1
  br i1 %146, label %.split.split, label %.loopexit, !llvm.loop !28

147:                                              ; preds = %65
  %148 = add nsw i32 %74, -8
  %149 = lshr i32 %71, %148
  %150 = and i32 %149, 255
  %151 = zext nneg i32 %150 to i64
  %152 = getelementptr inbounds [256 x i32], ptr %58, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !19
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %158

155:                                              ; preds = %147
  store i32 %.0123191, ptr %152, align 4, !tbaa !19
  %156 = getelementptr inbounds [256 x i32], ptr %59, i64 0, i64 %151
  store i32 %.0123191, ptr %156, align 4, !tbaa !19
  %157 = add nsw i32 %.0123191, -2
  br label %158

158:                                              ; preds = %155, %147
  %.1124 = phi i32 [ %157, %155 ], [ %.0123191, %147 ]
  %.0118 = phi i32 [ %.0123191, %155 ], [ %153, %147 ]
  %159 = sub nsw i32 24, %74
  %160 = shl i32 %71, %159
  %.not196 = icmp eq i8 %.fr201, 9
  br i1 %.not196, label %._crit_edge180, label %.lr.ph179

.lr.ph179:                                        ; preds = %158, %173
  %.2113177 = phi i32 [ %175, %173 ], [ %74, %158 ]
  %.1119176 = phi i32 [ %.3121, %173 ], [ %.0118, %158 ]
  %.2125175 = phi i32 [ %.3126, %173 ], [ %.1124, %158 ]
  %.3132174 = phi i32 [ %174, %173 ], [ %160, %158 ]
  %161 = lshr i32 %.3132174, 15
  %162 = and i32 %161, 1
  %sext149 = add nsw i32 %162, -1
  %spec.select = add nsw i32 %sext149, %.1119176
  %163 = icmp ult i32 %spec.select, -512
  br i1 %163, label %164, label %165

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

165:                                              ; preds = %.lr.ph179
  %166 = xor i32 %spec.select, -1
  %167 = zext nneg i32 %166 to i64
  %168 = getelementptr inbounds [512 x i32], ptr %60, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !19
  %170 = icmp eq i32 %169, 0
  br i1 %170, label %171, label %173

171:                                              ; preds = %165
  store i32 %.2125175, ptr %168, align 4, !tbaa !19
  %172 = add nsw i32 %.2125175, -2
  br label %173

173:                                              ; preds = %165, %171
  %.3126 = phi i32 [ %172, %171 ], [ %.2125175, %165 ]
  %.3121 = phi i32 [ %.2125175, %171 ], [ %169, %165 ]
  %174 = shl i32 %.3132174, 1
  %175 = add nsw i32 %.2113177, -1
  %176 = icmp sgt i32 %.2113177, 10
  br i1 %176, label %.lr.ph179, label %._crit_edge180, !llvm.loop !29

._crit_edge180:                                   ; preds = %173, %158
  %.3132.lcssa = phi i32 [ %160, %158 ], [ %174, %173 ]
  %.2125.lcssa = phi i32 [ %.1124, %158 ], [ %.3126, %173 ]
  %.1119.lcssa = phi i32 [ %.0118, %158 ], [ %.3121, %173 ]
  %177 = lshr i32 %.3132.lcssa, 15
  %178 = and i32 %177, 1
  %sext = add nsw i32 %178, -1
  %spec.select144 = add nsw i32 %sext, %.1119.lcssa
  %179 = icmp slt i32 %spec.select144, -512
  br i1 %179, label %180, label %181

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

181:                                              ; preds = %._crit_edge180
  %182 = xor i32 %spec.select144, -1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [512 x i32], ptr %60, i64 0, i64 %183
  store i32 %69, ptr %184, align 4, !tbaa !19
  br label %.loopexit

.loopexit:                                        ; preds = %142, %130, %99, %181
  %.4127 = phi i32 [ %.2125.lcssa, %181 ], [ %.0123191, %99 ], [ %.0123191, %130 ], [ %.0123191, %142 ]
  %indvars.iv.next239 = add nuw nsw i64 %indvars.iv238, 1
  %exitcond242.not = icmp eq i64 %indvars.iv.next239, %wide.trip.count241
  br i1 %exitcond242.not, label %._crit_edge195, label %65, !llvm.loop !30

._crit_edge195:                                   ; preds = %.loopexit, %._crit_edge173
  call void @llvm.lifetime.end.p0(i64 1032, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 258, ptr nonnull %4) #6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5

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 = { noreturn nounwind "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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }
attributes #8 = { noreturn 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN4jpgd12jpeg_decoder11huff_tablesE", !10, i64 0, !6, i64 4, !6, i64 1028, !6, i64 2052, !6, i64 2308}
!10 = !{!"bool", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14, !16, !15}
!18 = distinct !{!18, !14}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !6, i64 0}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14, !15, !16}
!24 = distinct !{!24, !14, !16, !15}
!25 = distinct !{!25, !14, !15, !16}
!26 = distinct !{!26, !14, !15, !16}
!27 = distinct !{!27, !14, !16, !15}
!28 = distinct !{!28, !14, !16, !15}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass