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

; 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] }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder11H2V1ConvertEv(ptr noundef nonnull align 8 dereferenceable(13523) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %18 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 30
  %19 = load i32, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 37
  %21 = load i32, ptr %20, align 8, !tbaa !14
  %22 = sub nsw i32 %19, %21
  store i32 %22, ptr %3, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %23 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 72
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  store ptr %24, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %25 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 66
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = load i32, ptr %3, align 4, !tbaa !15
  %28 = mul nsw i32 %27, 8
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i8, ptr %26, i64 %29
  store ptr %30, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %31 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 66
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %32, i64 128
  %34 = load i32, ptr %3, align 4, !tbaa !15
  %35 = mul nsw i32 %34, 8
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i8, ptr %33, i64 %36
  store ptr %37, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %38 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 60
  %39 = load i32, ptr %38, align 4, !tbaa !18
  store i32 %39, ptr %7, align 4, !tbaa !15
  br label %40

40:                                               ; preds = %158, %1
  %41 = load i32, ptr %7, align 4, !tbaa !15
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %161

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %45

45:                                               ; preds = %150, %44
  %46 = load i32, ptr %9, align 4, !tbaa !15
  %47 = icmp slt i32 %46, 2
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %153

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !15
  br label %50

50:                                               ; preds = %144, %49
  %51 = load i32, ptr %10, align 4, !tbaa !15
  %52 = icmp slt i32 %51, 4
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %147

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 0
  %57 = load i8, ptr %56, align 1, !tbaa !19
  %58 = zext i8 %57 to i32
  store i32 %58, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 64
  %61 = load i8, ptr %60, align 1, !tbaa !19
  %62 = zext i8 %61 to i32
  store i32 %62, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %63 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 68
  %64 = load i32, ptr %12, align 4, !tbaa !15
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [256 x i32], ptr %63, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !15
  store i32 %67, ptr %13, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %68 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 70
  %69 = load i32, ptr %12, align 4, !tbaa !15
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [256 x i32], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 71
  %74 = load i32, ptr %11, align 4, !tbaa !15
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [256 x i32], ptr %73, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !15
  %78 = add nsw i32 %72, %77
  %79 = ashr i32 %78, 16
  store i32 %79, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %80 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %17, i32 0, i32 69
  %81 = load i32, ptr %11, align 4, !tbaa !15
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [256 x i32], ptr %80, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !15
  store i32 %84, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !15
  %87 = shl i32 %86, 1
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %85, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !19
  %91 = zext i8 %90 to i32
  store i32 %91, ptr %16, align 4, !tbaa !15
  %92 = load i32, ptr %16, align 4, !tbaa !15
  %93 = load i32, ptr %13, align 4, !tbaa !15
  %94 = add nsw i32 %92, %93
  %95 = call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %94)
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 0
  store i8 %95, ptr %97, align 1, !tbaa !19
  %98 = load i32, ptr %16, align 4, !tbaa !15
  %99 = load i32, ptr %14, align 4, !tbaa !15
  %100 = add nsw i32 %98, %99
  %101 = call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %100)
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 1
  store i8 %101, ptr %103, align 1, !tbaa !19
  %104 = load i32, ptr %16, align 4, !tbaa !15
  %105 = load i32, ptr %15, align 4, !tbaa !15
  %106 = add nsw i32 %104, %105
  %107 = call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %106)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 2
  store i8 %107, ptr %109, align 1, !tbaa !19
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 3
  store i8 -1, ptr %111, align 1, !tbaa !19
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !15
  %114 = shl i32 %113, 1
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %112, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !19
  %119 = zext i8 %118 to i32
  store i32 %119, ptr %16, align 4, !tbaa !15
  %120 = load i32, ptr %16, align 4, !tbaa !15
  %121 = load i32, ptr %13, align 4, !tbaa !15
  %122 = add nsw i32 %120, %121
  %123 = call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %122)
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 4
  store i8 %123, ptr %125, align 1, !tbaa !19
  %126 = load i32, ptr %16, align 4, !tbaa !15
  %127 = load i32, ptr %14, align 4, !tbaa !15
  %128 = add nsw i32 %126, %127
  %129 = call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %128)
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 5
  store i8 %129, ptr %131, align 1, !tbaa !19
  %132 = load i32, ptr %16, align 4, !tbaa !15
  %133 = load i32, ptr %15, align 4, !tbaa !15
  %134 = add nsw i32 %132, %133
  %135 = call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %134)
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %136, i64 6
  store i8 %135, ptr %137, align 1, !tbaa !19
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 7
  store i8 -1, ptr %139, align 1, !tbaa !19
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 8
  store ptr %141, ptr %4, align 8, !tbaa !5
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i32 1
  store ptr %143, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %144

144:                                              ; preds = %54
  %145 = load i32, ptr %10, align 4, !tbaa !15
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %10, align 4, !tbaa !15
  br label %50, !llvm.loop !20

147:                                              ; preds = %53
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds i8, ptr %148, i64 64
  store ptr %149, ptr %5, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %147
  %151 = load i32, ptr %9, align 4, !tbaa !15
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %9, align 4, !tbaa !15
  br label %45, !llvm.loop !22

153:                                              ; preds = %48
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %154, i64 128
  store ptr %155, ptr %5, align 8, !tbaa !5
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i64 248
  store ptr %157, ptr %6, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %153
  %159 = load i32, ptr %7, align 4, !tbaa !15
  %160 = add nsw i32 %159, -1
  store i32 %160, ptr %7, align 4, !tbaa !15
  br label %40, !llvm.loop !23

161:                                              ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 584}
!10 = !{!"_ZTSN4jpgd12jpeg_decoderE", !7, i64 0, !11, i64 200, !6, i64 208, !11, i64 216, !11, i64 220, !6, i64 224, !11, i64 232, !7, i64 236, !7, i64 248, !7, i64 312, !7, i64 376, !11, i64 408, !11, i64 412, !7, i64 416, !7, i64 432, !7, i64 448, !7, i64 464, !7, i64 480, !7, i64 496, !11, i64 512, !7, i64 516, !7, i64 532, !7, i64 548, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !11, i64 592, !11, i64 596, !11, i64 600, !7, i64 604, !11, i64 644, !11, i64 648, !11, i64 652, !11, i64 656, !11, i64 660, !11, i64 664, !7, i64 672, !7, i64 736, !7, i64 768, !11, i64 800, !7, i64 804, !6, i64 824, !11, i64 832, !11, i64 836, !7, i64 840, !7, i64 904, !7, i64 9224, !11, i64 9288, !11, i64 9292, !11, i64 9296, !11, i64 9300, !11, i64 9304, !11, i64 9308, !11, i64 9312, !11, 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, !12, i64 13512, !11, i64 13516, !13, i64 13520, !13, i64 13521, !13, i64 13522}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN4jpgd11jpgd_statusE", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!10, !11, i64 648}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !6, i64 13496}
!17 = !{!10, !6, i64 9384}
!18 = !{!10, !11, i64 9308}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder11H2V1ConvertEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(13523) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 9308
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.preheader51.lr.ph, label %._crit_edge

.preheader51.lr.ph:                               ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 9384
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %6, i64 128
  %8 = getelementptr inbounds i8, ptr %0, i64 584
  %9 = load i32, ptr %8, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %0, i64 648
  %11 = load i32, ptr %10, align 8, !tbaa !15
  %12 = sub nsw i32 %9, %11
  %13 = shl nsw i32 %12, 3
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds i8, ptr %7, i64 %14
  %16 = getelementptr inbounds i8, ptr %6, i64 %14
  %17 = getelementptr inbounds i8, ptr %0, i64 13496
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %0, i64 9400
  %20 = getelementptr inbounds i8, ptr %0, i64 11448
  %21 = getelementptr inbounds i8, ptr %0, i64 12472
  %22 = getelementptr inbounds i8, ptr %0, i64 10424
  br label %.preheader51

.preheader51:                                     ; preds = %.preheader51.lr.ph, %.preheader51
  %.062 = phi ptr [ %18, %.preheader51.lr.ph ], [ %356, %.preheader51 ]
  %.04361 = phi ptr [ %16, %.preheader51.lr.ph ], [ %357, %.preheader51 ]
  %.04560 = phi ptr [ %15, %.preheader51.lr.ph ], [ %358, %.preheader51 ]
  %.04859 = phi i32 [ %3, %.preheader51.lr.ph ], [ %359, %.preheader51 ]
  %23 = load i8, ptr %.04560, align 1, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %.04560, i64 64
  %25 = load i8, ptr %24, align 1, !tbaa !17
  %26 = zext i8 %25 to i64
  %27 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !18
  %29 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %26
  %30 = load i32, ptr %29, align 4, !tbaa !18
  %31 = zext i8 %23 to i64
  %32 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !18
  %34 = add nsw i32 %33, %30
  %35 = ashr i32 %34, 16
  %36 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %31
  %37 = load i32, ptr %36, align 4, !tbaa !18
  %38 = load i8, ptr %.04361, align 1, !tbaa !17
  %39 = zext i8 %38 to i32
  %40 = add nsw i32 %28, %39
  %41 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %40)
  store i8 %41, ptr %.062, align 1, !tbaa !17
  %42 = add nsw i32 %35, %39
  %43 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %42)
  %44 = getelementptr inbounds i8, ptr %.062, i64 1
  store i8 %43, ptr %44, align 1, !tbaa !17
  %45 = add nsw i32 %37, %39
  %46 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %45)
  %47 = getelementptr inbounds i8, ptr %.062, i64 2
  store i8 %46, ptr %47, align 1, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %.062, i64 3
  store i8 -1, ptr %48, align 1, !tbaa !17
  %49 = getelementptr inbounds i8, ptr %.04361, i64 1
  %50 = load i8, ptr %49, align 1, !tbaa !17
  %51 = zext i8 %50 to i32
  %52 = add nsw i32 %28, %51
  %53 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %52)
  %54 = getelementptr inbounds i8, ptr %.062, i64 4
  store i8 %53, ptr %54, align 1, !tbaa !17
  %55 = add nsw i32 %35, %51
  %56 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %55)
  %57 = getelementptr inbounds i8, ptr %.062, i64 5
  store i8 %56, ptr %57, align 1, !tbaa !17
  %58 = add nsw i32 %37, %51
  %59 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %58)
  %60 = getelementptr inbounds i8, ptr %.062, i64 6
  store i8 %59, ptr %60, align 1, !tbaa !17
  %61 = getelementptr inbounds i8, ptr %.062, i64 7
  store i8 -1, ptr %61, align 1, !tbaa !17
  %62 = getelementptr inbounds i8, ptr %.062, i64 8
  %63 = getelementptr inbounds i8, ptr %.04560, i64 1
  %64 = load i8, ptr %63, align 1, !tbaa !17
  %65 = getelementptr inbounds i8, ptr %.04560, i64 65
  %66 = load i8, ptr %65, align 1, !tbaa !17
  %67 = zext i8 %66 to i64
  %68 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !18
  %70 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %67
  %71 = load i32, ptr %70, align 4, !tbaa !18
  %72 = zext i8 %64 to i64
  %73 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !18
  %75 = add nsw i32 %74, %71
  %76 = ashr i32 %75, 16
  %77 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %72
  %78 = load i32, ptr %77, align 4, !tbaa !18
  %79 = getelementptr inbounds i8, ptr %.04361, i64 2
  %80 = load i8, ptr %79, align 1, !tbaa !17
  %81 = zext i8 %80 to i32
  %82 = add nsw i32 %69, %81
  %83 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %82)
  store i8 %83, ptr %62, align 1, !tbaa !17
  %84 = add nsw i32 %76, %81
  %85 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %84)
  %86 = getelementptr inbounds i8, ptr %.062, i64 9
  store i8 %85, ptr %86, align 1, !tbaa !17
  %87 = add nsw i32 %78, %81
  %88 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %87)
  %89 = getelementptr inbounds i8, ptr %.062, i64 10
  store i8 %88, ptr %89, align 1, !tbaa !17
  %90 = getelementptr inbounds i8, ptr %.062, i64 11
  store i8 -1, ptr %90, align 1, !tbaa !17
  %91 = getelementptr inbounds i8, ptr %.04361, i64 3
  %92 = load i8, ptr %91, align 1, !tbaa !17
  %93 = zext i8 %92 to i32
  %94 = add nsw i32 %69, %93
  %95 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %94)
  %96 = getelementptr inbounds i8, ptr %.062, i64 12
  store i8 %95, ptr %96, align 1, !tbaa !17
  %97 = add nsw i32 %76, %93
  %98 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %97)
  %99 = getelementptr inbounds i8, ptr %.062, i64 13
  store i8 %98, ptr %99, align 1, !tbaa !17
  %100 = add nsw i32 %78, %93
  %101 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %100)
  %102 = getelementptr inbounds i8, ptr %.062, i64 14
  store i8 %101, ptr %102, align 1, !tbaa !17
  %103 = getelementptr inbounds i8, ptr %.062, i64 15
  store i8 -1, ptr %103, align 1, !tbaa !17
  %104 = getelementptr inbounds i8, ptr %.062, i64 16
  %105 = getelementptr inbounds i8, ptr %.04560, i64 2
  %106 = load i8, ptr %105, align 1, !tbaa !17
  %107 = getelementptr inbounds i8, ptr %.04560, i64 66
  %108 = load i8, ptr %107, align 1, !tbaa !17
  %109 = zext i8 %108 to i64
  %110 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !18
  %112 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %109
  %113 = load i32, ptr %112, align 4, !tbaa !18
  %114 = zext i8 %106 to i64
  %115 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !18
  %117 = add nsw i32 %116, %113
  %118 = ashr i32 %117, 16
  %119 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %114
  %120 = load i32, ptr %119, align 4, !tbaa !18
  %121 = getelementptr inbounds i8, ptr %.04361, i64 4
  %122 = load i8, ptr %121, align 1, !tbaa !17
  %123 = zext i8 %122 to i32
  %124 = add nsw i32 %111, %123
  %125 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %124)
  store i8 %125, ptr %104, align 1, !tbaa !17
  %126 = add nsw i32 %118, %123
  %127 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %126)
  %128 = getelementptr inbounds i8, ptr %.062, i64 17
  store i8 %127, ptr %128, align 1, !tbaa !17
  %129 = add nsw i32 %120, %123
  %130 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %129)
  %131 = getelementptr inbounds i8, ptr %.062, i64 18
  store i8 %130, ptr %131, align 1, !tbaa !17
  %132 = getelementptr inbounds i8, ptr %.062, i64 19
  store i8 -1, ptr %132, align 1, !tbaa !17
  %133 = getelementptr inbounds i8, ptr %.04361, i64 5
  %134 = load i8, ptr %133, align 1, !tbaa !17
  %135 = zext i8 %134 to i32
  %136 = add nsw i32 %111, %135
  %137 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %136)
  %138 = getelementptr inbounds i8, ptr %.062, i64 20
  store i8 %137, ptr %138, align 1, !tbaa !17
  %139 = add nsw i32 %118, %135
  %140 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %139)
  %141 = getelementptr inbounds i8, ptr %.062, i64 21
  store i8 %140, ptr %141, align 1, !tbaa !17
  %142 = add nsw i32 %120, %135
  %143 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %142)
  %144 = getelementptr inbounds i8, ptr %.062, i64 22
  store i8 %143, ptr %144, align 1, !tbaa !17
  %145 = getelementptr inbounds i8, ptr %.062, i64 23
  store i8 -1, ptr %145, align 1, !tbaa !17
  %146 = getelementptr inbounds i8, ptr %.062, i64 24
  %147 = getelementptr inbounds i8, ptr %.04560, i64 3
  %148 = load i8, ptr %147, align 1, !tbaa !17
  %149 = getelementptr inbounds i8, ptr %.04560, i64 67
  %150 = load i8, ptr %149, align 1, !tbaa !17
  %151 = zext i8 %150 to i64
  %152 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !18
  %154 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %151
  %155 = load i32, ptr %154, align 4, !tbaa !18
  %156 = zext i8 %148 to i64
  %157 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !18
  %159 = add nsw i32 %158, %155
  %160 = ashr i32 %159, 16
  %161 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %156
  %162 = load i32, ptr %161, align 4, !tbaa !18
  %163 = getelementptr inbounds i8, ptr %.04361, i64 6
  %164 = load i8, ptr %163, align 1, !tbaa !17
  %165 = zext i8 %164 to i32
  %166 = add nsw i32 %153, %165
  %167 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %166)
  store i8 %167, ptr %146, align 1, !tbaa !17
  %168 = add nsw i32 %160, %165
  %169 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %168)
  %170 = getelementptr inbounds i8, ptr %.062, i64 25
  store i8 %169, ptr %170, align 1, !tbaa !17
  %171 = add nsw i32 %162, %165
  %172 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %171)
  %173 = getelementptr inbounds i8, ptr %.062, i64 26
  store i8 %172, ptr %173, align 1, !tbaa !17
  %174 = getelementptr inbounds i8, ptr %.062, i64 27
  store i8 -1, ptr %174, align 1, !tbaa !17
  %175 = getelementptr inbounds i8, ptr %.04361, i64 7
  %176 = load i8, ptr %175, align 1, !tbaa !17
  %177 = zext i8 %176 to i32
  %178 = add nsw i32 %153, %177
  %179 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %178)
  %180 = getelementptr inbounds i8, ptr %.062, i64 28
  store i8 %179, ptr %180, align 1, !tbaa !17
  %181 = add nsw i32 %160, %177
  %182 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %181)
  %183 = getelementptr inbounds i8, ptr %.062, i64 29
  store i8 %182, ptr %183, align 1, !tbaa !17
  %184 = add nsw i32 %162, %177
  %185 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %184)
  %186 = getelementptr inbounds i8, ptr %.062, i64 30
  store i8 %185, ptr %186, align 1, !tbaa !17
  %187 = getelementptr inbounds i8, ptr %.062, i64 31
  store i8 -1, ptr %187, align 1, !tbaa !17
  %188 = getelementptr inbounds i8, ptr %.062, i64 32
  %189 = getelementptr inbounds i8, ptr %.04560, i64 4
  %190 = getelementptr inbounds i8, ptr %.04361, i64 64
  %191 = load i8, ptr %189, align 1, !tbaa !17
  %192 = getelementptr inbounds i8, ptr %.04560, i64 68
  %193 = load i8, ptr %192, align 1, !tbaa !17
  %194 = zext i8 %193 to i64
  %195 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !18
  %197 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %194
  %198 = load i32, ptr %197, align 4, !tbaa !18
  %199 = zext i8 %191 to i64
  %200 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !18
  %202 = add nsw i32 %201, %198
  %203 = ashr i32 %202, 16
  %204 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %199
  %205 = load i32, ptr %204, align 4, !tbaa !18
  %206 = load i8, ptr %190, align 1, !tbaa !17
  %207 = zext i8 %206 to i32
  %208 = add nsw i32 %196, %207
  %209 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %208)
  store i8 %209, ptr %188, align 1, !tbaa !17
  %210 = add nsw i32 %203, %207
  %211 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %210)
  %212 = getelementptr inbounds i8, ptr %.062, i64 33
  store i8 %211, ptr %212, align 1, !tbaa !17
  %213 = add nsw i32 %205, %207
  %214 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %213)
  %215 = getelementptr inbounds i8, ptr %.062, i64 34
  store i8 %214, ptr %215, align 1, !tbaa !17
  %216 = getelementptr inbounds i8, ptr %.062, i64 35
  store i8 -1, ptr %216, align 1, !tbaa !17
  %217 = getelementptr inbounds i8, ptr %.04361, i64 65
  %218 = load i8, ptr %217, align 1, !tbaa !17
  %219 = zext i8 %218 to i32
  %220 = add nsw i32 %196, %219
  %221 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %220)
  %222 = getelementptr inbounds i8, ptr %.062, i64 36
  store i8 %221, ptr %222, align 1, !tbaa !17
  %223 = add nsw i32 %203, %219
  %224 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %223)
  %225 = getelementptr inbounds i8, ptr %.062, i64 37
  store i8 %224, ptr %225, align 1, !tbaa !17
  %226 = add nsw i32 %205, %219
  %227 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %226)
  %228 = getelementptr inbounds i8, ptr %.062, i64 38
  store i8 %227, ptr %228, align 1, !tbaa !17
  %229 = getelementptr inbounds i8, ptr %.062, i64 39
  store i8 -1, ptr %229, align 1, !tbaa !17
  %230 = getelementptr inbounds i8, ptr %.062, i64 40
  %231 = getelementptr inbounds i8, ptr %.04560, i64 5
  %232 = load i8, ptr %231, align 1, !tbaa !17
  %233 = getelementptr inbounds i8, ptr %.04560, i64 69
  %234 = load i8, ptr %233, align 1, !tbaa !17
  %235 = zext i8 %234 to i64
  %236 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !18
  %238 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %235
  %239 = load i32, ptr %238, align 4, !tbaa !18
  %240 = zext i8 %232 to i64
  %241 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %240
  %242 = load i32, ptr %241, align 4, !tbaa !18
  %243 = add nsw i32 %242, %239
  %244 = ashr i32 %243, 16
  %245 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %240
  %246 = load i32, ptr %245, align 4, !tbaa !18
  %247 = getelementptr inbounds i8, ptr %.04361, i64 66
  %248 = load i8, ptr %247, align 1, !tbaa !17
  %249 = zext i8 %248 to i32
  %250 = add nsw i32 %237, %249
  %251 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %250)
  store i8 %251, ptr %230, align 1, !tbaa !17
  %252 = add nsw i32 %244, %249
  %253 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %252)
  %254 = getelementptr inbounds i8, ptr %.062, i64 41
  store i8 %253, ptr %254, align 1, !tbaa !17
  %255 = add nsw i32 %246, %249
  %256 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %255)
  %257 = getelementptr inbounds i8, ptr %.062, i64 42
  store i8 %256, ptr %257, align 1, !tbaa !17
  %258 = getelementptr inbounds i8, ptr %.062, i64 43
  store i8 -1, ptr %258, align 1, !tbaa !17
  %259 = getelementptr inbounds i8, ptr %.04361, i64 67
  %260 = load i8, ptr %259, align 1, !tbaa !17
  %261 = zext i8 %260 to i32
  %262 = add nsw i32 %237, %261
  %263 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %262)
  %264 = getelementptr inbounds i8, ptr %.062, i64 44
  store i8 %263, ptr %264, align 1, !tbaa !17
  %265 = add nsw i32 %244, %261
  %266 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %265)
  %267 = getelementptr inbounds i8, ptr %.062, i64 45
  store i8 %266, ptr %267, align 1, !tbaa !17
  %268 = add nsw i32 %246, %261
  %269 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %268)
  %270 = getelementptr inbounds i8, ptr %.062, i64 46
  store i8 %269, ptr %270, align 1, !tbaa !17
  %271 = getelementptr inbounds i8, ptr %.062, i64 47
  store i8 -1, ptr %271, align 1, !tbaa !17
  %272 = getelementptr inbounds i8, ptr %.062, i64 48
  %273 = getelementptr inbounds i8, ptr %.04560, i64 6
  %274 = load i8, ptr %273, align 1, !tbaa !17
  %275 = getelementptr inbounds i8, ptr %.04560, i64 70
  %276 = load i8, ptr %275, align 1, !tbaa !17
  %277 = zext i8 %276 to i64
  %278 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %277
  %279 = load i32, ptr %278, align 4, !tbaa !18
  %280 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %277
  %281 = load i32, ptr %280, align 4, !tbaa !18
  %282 = zext i8 %274 to i64
  %283 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !18
  %285 = add nsw i32 %284, %281
  %286 = ashr i32 %285, 16
  %287 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %282
  %288 = load i32, ptr %287, align 4, !tbaa !18
  %289 = getelementptr inbounds i8, ptr %.04361, i64 68
  %290 = load i8, ptr %289, align 1, !tbaa !17
  %291 = zext i8 %290 to i32
  %292 = add nsw i32 %279, %291
  %293 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %292)
  store i8 %293, ptr %272, align 1, !tbaa !17
  %294 = add nsw i32 %286, %291
  %295 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %294)
  %296 = getelementptr inbounds i8, ptr %.062, i64 49
  store i8 %295, ptr %296, align 1, !tbaa !17
  %297 = add nsw i32 %288, %291
  %298 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %297)
  %299 = getelementptr inbounds i8, ptr %.062, i64 50
  store i8 %298, ptr %299, align 1, !tbaa !17
  %300 = getelementptr inbounds i8, ptr %.062, i64 51
  store i8 -1, ptr %300, align 1, !tbaa !17
  %301 = getelementptr inbounds i8, ptr %.04361, i64 69
  %302 = load i8, ptr %301, align 1, !tbaa !17
  %303 = zext i8 %302 to i32
  %304 = add nsw i32 %279, %303
  %305 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %304)
  %306 = getelementptr inbounds i8, ptr %.062, i64 52
  store i8 %305, ptr %306, align 1, !tbaa !17
  %307 = add nsw i32 %286, %303
  %308 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %307)
  %309 = getelementptr inbounds i8, ptr %.062, i64 53
  store i8 %308, ptr %309, align 1, !tbaa !17
  %310 = add nsw i32 %288, %303
  %311 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %310)
  %312 = getelementptr inbounds i8, ptr %.062, i64 54
  store i8 %311, ptr %312, align 1, !tbaa !17
  %313 = getelementptr inbounds i8, ptr %.062, i64 55
  store i8 -1, ptr %313, align 1, !tbaa !17
  %314 = getelementptr inbounds i8, ptr %.062, i64 56
  %315 = getelementptr inbounds i8, ptr %.04560, i64 7
  %316 = load i8, ptr %315, align 1, !tbaa !17
  %317 = getelementptr inbounds i8, ptr %.04560, i64 71
  %318 = load i8, ptr %317, align 1, !tbaa !17
  %319 = zext i8 %318 to i64
  %320 = getelementptr inbounds [256 x i32], ptr %19, i64 0, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !18
  %322 = getelementptr inbounds [256 x i32], ptr %20, i64 0, i64 %319
  %323 = load i32, ptr %322, align 4, !tbaa !18
  %324 = zext i8 %316 to i64
  %325 = getelementptr inbounds [256 x i32], ptr %21, i64 0, i64 %324
  %326 = load i32, ptr %325, align 4, !tbaa !18
  %327 = add nsw i32 %326, %323
  %328 = ashr i32 %327, 16
  %329 = getelementptr inbounds [256 x i32], ptr %22, i64 0, i64 %324
  %330 = load i32, ptr %329, align 4, !tbaa !18
  %331 = getelementptr inbounds i8, ptr %.04361, i64 70
  %332 = load i8, ptr %331, align 1, !tbaa !17
  %333 = zext i8 %332 to i32
  %334 = add nsw i32 %321, %333
  %335 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %334)
  store i8 %335, ptr %314, align 1, !tbaa !17
  %336 = add nsw i32 %328, %333
  %337 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %336)
  %338 = getelementptr inbounds i8, ptr %.062, i64 57
  store i8 %337, ptr %338, align 1, !tbaa !17
  %339 = add nsw i32 %330, %333
  %340 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %339)
  %341 = getelementptr inbounds i8, ptr %.062, i64 58
  store i8 %340, ptr %341, align 1, !tbaa !17
  %342 = getelementptr inbounds i8, ptr %.062, i64 59
  store i8 -1, ptr %342, align 1, !tbaa !17
  %343 = getelementptr inbounds i8, ptr %.04361, i64 71
  %344 = load i8, ptr %343, align 1, !tbaa !17
  %345 = zext i8 %344 to i32
  %346 = add nsw i32 %321, %345
  %347 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %346)
  %348 = getelementptr inbounds i8, ptr %.062, i64 60
  store i8 %347, ptr %348, align 1, !tbaa !17
  %349 = add nsw i32 %328, %345
  %350 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %349)
  %351 = getelementptr inbounds i8, ptr %.062, i64 61
  store i8 %350, ptr %351, align 1, !tbaa !17
  %352 = add nsw i32 %330, %345
  %353 = tail call noundef zeroext i8 @_ZN4jpgd12jpeg_decoder5clampEi(i32 noundef %352)
  %354 = getelementptr inbounds i8, ptr %.062, i64 62
  store i8 %353, ptr %354, align 1, !tbaa !17
  %355 = getelementptr inbounds i8, ptr %.062, i64 63
  store i8 -1, ptr %355, align 1, !tbaa !17
  %356 = getelementptr inbounds i8, ptr %.062, i64 64
  %357 = getelementptr inbounds i8, ptr %.04361, i64 256
  %358 = getelementptr inbounds i8, ptr %.04560, i64 256
  %359 = add nsw i32 %.04859, -1
  %360 = icmp ugt i32 %.04859, 1
  br i1 %360, label %.preheader51, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %.preheader51, %1
  ret void
}

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 9308}
!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, !10, i64 9384}
!14 = !{!6, !9, i64 584}
!15 = !{!6, !9, i64 648}
!16 = !{!6, !10, i64 13496}
!17 = !{!7, !7, i64 0}
!18 = !{!9, !9, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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