; LLVM IR from drohmer/cgp :: library/third_party/src/jpeg/jpgd.ll (ZN4jpgd4idctEPKsPhi)

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

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__._ZN4jpgd4idctEPKsPhi = external hidden unnamed_addr constant [52 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZN4jpgdL16s_idct_row_tableE = external hidden constant [512 x i8], align 16
@_ZN4jpgdL16s_idct_col_tableE = external hidden constant [64 x i8], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd4idctEPKsPhi(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [64 x i32], align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = icmp sge i32 %15, 1
  br i1 %16, label %17, label %18

17:                                               ; preds = %3
  br label %20

18:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 255, ptr noundef @__PRETTY_FUNCTION__._ZN4jpgd4idctEPKsPhi) #4
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp sle i32 %21, 64
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  br label %26

24:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 256, ptr noundef @__PRETTY_FUNCTION__._ZN4jpgd4idctEPKsPhi) #4
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = icmp sle i32 %27, 1
  br i1 %28, label %29, label %73

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds i16, ptr %30, i64 0
  %32 = load i16, ptr %31, align 2, !tbaa !11
  %33 = sext i16 %32 to i32
  %34 = add nsw i32 %33, 4
  %35 = ashr i32 %34, 3
  %36 = add nsw i32 %35, 128
  store i32 %36, ptr %7, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = icmp ugt i32 %37, 255
  br i1 %38, label %39, label %44

39:                                               ; preds = %29
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = xor i32 %40, -1
  %42 = ashr i32 %41, 31
  %43 = and i32 %42, 255
  br label %46

44:                                               ; preds = %29
  %45 = load i32, ptr %7, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %44, %39
  %47 = phi i32 [ %43, %39 ], [ %45, %44 ]
  store i32 %47, ptr %7, align 4, !tbaa !9
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = shl i32 %49, 8
  %51 = or i32 %48, %50
  store i32 %51, ptr %7, align 4, !tbaa !9
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = shl i32 %53, 16
  %55 = or i32 %52, %54
  store i32 %55, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 8, ptr %8, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %69, %46
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %72

60:                                               ; preds = %56
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 0
  store i32 %61, ptr %63, align 4, !tbaa !9
  %64 = load i32, ptr %7, align 4, !tbaa !9
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  store i32 %64, ptr %66, align 4, !tbaa !9
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  store ptr %68, ptr %5, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %60
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr %8, align 4, !tbaa !9
  br label %56, !llvm.loop !13

72:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %171

73:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 256, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %74, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %75 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 0
  store ptr %75, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = sub nsw i32 %76, 1
  %78 = mul nsw i32 %77, 8
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [512 x i8], ptr @_ZN4jpgdL16s_idct_row_tableE, i64 0, i64 %79
  store ptr %80, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 8, ptr %13, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %120, %73
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %84, label %125

84:                                               ; preds = %81
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load i8, ptr %85, align 1, !tbaa !15
  %87 = zext i8 %86 to i32
  switch i32 %87, label %115 [
    i32 0, label %88
    i32 1, label %91
    i32 2, label %94
    i32 3, label %97
    i32 4, label %100
    i32 5, label %103
    i32 6, label %106
    i32 7, label %109
    i32 8, label %112
  ]

88:                                               ; preds = %84
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi0EE4idctEPiPKs(ptr noundef %89, ptr noundef %90)
  br label %115

91:                                               ; preds = %84
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi1EE4idctEPiPKs(ptr noundef %92, ptr noundef %93)
  br label %115

94:                                               ; preds = %84
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi2EE4idctEPiPKs(ptr noundef %95, ptr noundef %96)
  br label %115

97:                                               ; preds = %84
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi3EE4idctEPiPKs(ptr noundef %98, ptr noundef %99)
  br label %115

100:                                              ; preds = %84
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi4EE4idctEPiPKs(ptr noundef %101, ptr noundef %102)
  br label %115

103:                                              ; preds = %84
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi5EE4idctEPiPKs(ptr noundef %104, ptr noundef %105)
  br label %115

106:                                              ; preds = %84
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi6EE4idctEPiPKs(ptr noundef %107, ptr noundef %108)
  br label %115

109:                                              ; preds = %84
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi7EE4idctEPiPKs(ptr noundef %110, ptr noundef %111)
  br label %115

112:                                              ; preds = %84
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4jpgd3RowILi8EE4idctEPiPKs(ptr noundef %113, ptr noundef %114)
  br label %115

115:                                              ; preds = %112, %109, %106, %103, %100, %97, %94, %91, %88, %84
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds i16, ptr %116, i64 8
  store ptr %117, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds i32, ptr %118, i64 8
  store ptr %119, ptr %11, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %115
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = add nsw i32 %121, -1
  store i32 %122, ptr %13, align 4, !tbaa !9
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %123, i32 1
  store ptr %124, ptr %12, align 8, !tbaa !5
  br label %81, !llvm.loop !16

125:                                              ; preds = %81
  %126 = getelementptr inbounds [64 x i32], ptr %9, i64 0, i64 0
  store ptr %126, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %127 = load i32, ptr %6, align 4, !tbaa !9
  %128 = sub nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [64 x i8], ptr @_ZN4jpgdL16s_idct_col_tableE, i64 0, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !15
  %132 = zext i8 %131 to i32
  store i32 %132, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %167, %125
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %136, label %170

136:                                              ; preds = %133
  %137 = load i32, ptr %14, align 4, !tbaa !9
  switch i32 %137, label %162 [
    i32 1, label %138
    i32 2, label %141
    i32 3, label %144
    i32 4, label %147
    i32 5, label %150
    i32 6, label %153
    i32 7, label %156
    i32 8, label %159
  ]

138:                                              ; preds = %136
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef %139, ptr noundef %140)
  br label %162

141:                                              ; preds = %136
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef %142, ptr noundef %143)
  br label %162

144:                                              ; preds = %136
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef %145, ptr noundef %146)
  br label %162

147:                                              ; preds = %136
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef %148, ptr noundef %149)
  br label %162

150:                                              ; preds = %136
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef %151, ptr noundef %152)
  br label %162

153:                                              ; preds = %136
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef %154, ptr noundef %155)
  br label %162

156:                                              ; preds = %136
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef %157, ptr noundef %158)
  br label %162

159:                                              ; preds = %136
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef %160, ptr noundef %161)
  br label %162

162:                                              ; preds = %159, %156, %153, %150, %147, %144, %141, %138, %136
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = getelementptr inbounds i32, ptr %163, i32 1
  store ptr %164, ptr %11, align 8, !tbaa !5
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds i8, ptr %165, i32 1
  store ptr %166, ptr %5, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %162
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = add nsw i32 %168, -1
  store i32 %169, ptr %13, align 4, !tbaa !9
  br label %133, !llvm.loop !17

170:                                              ; preds = %133
  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 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %9) #5
  br label %171

171:                                              ; preds = %170, %72
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi0EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi1EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi2EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi3EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi4EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi5EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi6EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi7EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi8EE4idctEPiPKs(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef, ptr noundef) #3 align 2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { noreturn nounwind }
attributes #5 = { 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 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__._ZN4jpgd4idctEPKsPhi = external hidden unnamed_addr constant [52 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZN4jpgdL16s_idct_row_tableE = external hidden local_unnamed_addr constant [512 x i8], align 16
@_ZN4jpgdL16s_idct_col_tableE = external hidden local_unnamed_addr constant [64 x i8], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4jpgd4idctEPKsPhi(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca [64 x i32], align 16
  %5 = icmp sgt i32 %2, 0
  br i1 %5, label %7, label %6

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 255, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4jpgd4idctEPKsPhi) #3
  unreachable

7:                                                ; preds = %3
  %8 = icmp ult i32 %2, 65
  br i1 %8, label %10, label %9

9:                                                ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 256, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4jpgd4idctEPKsPhi) #3
  unreachable

10:                                               ; preds = %7
  %11 = icmp eq i32 %2, 1
  br i1 %11, label %.loopexit.loopexit, label %27

.loopexit.loopexit:                               ; preds = %10
  %12 = load i16, ptr %0, align 2, !tbaa !5
  %13 = sext i16 %12 to i32
  %14 = add nsw i32 %13, 4
  %15 = ashr i32 %14, 3
  %16 = add nsw i32 %15, 128
  %17 = icmp ugt i32 %16, 255
  %18 = icmp sgt i32 %15, -129
  %19 = select i1 %18, i32 255, i32 0
  %20 = select i1 %17, i32 %19, i32 %16
  %21 = mul i32 %20, 16843009
  %22 = insertelement <4 x i32> poison, i32 %21, i64 0
  %23 = shufflevector <4 x i32> %22, <4 x i32> poison, <4 x i32> zeroinitializer
  store <4 x i32> %23, ptr %1, align 4, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %1, i64 16
  store <4 x i32> %23, ptr %24, align 4, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %1, i64 32
  store <4 x i32> %23, ptr %25, align 4, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %1, i64 48
  store <4 x i32> %23, ptr %26, align 4, !tbaa !9
  br label %.loopexit

27:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #4
  %28 = add nsw i32 %2, -1
  %29 = shl nuw nsw i32 %28, 3
  %30 = zext nneg i32 %29 to i64
  %31 = getelementptr inbounds [512 x i8], ptr @_ZN4jpgdL16s_idct_row_tableE, i64 0, i64 %30
  br label %32

32:                                               ; preds = %27, %43
  %.06578 = phi i32 [ 8, %27 ], [ %46, %43 ]
  %.06777 = phi ptr [ %31, %27 ], [ %47, %43 ]
  %.06876 = phi ptr [ %4, %27 ], [ %45, %43 ]
  %.07075 = phi ptr [ %0, %27 ], [ %44, %43 ]
  %33 = load i8, ptr %.06777, align 1, !tbaa !11
  switch i8 %33, label %43 [
    i8 0, label %34
    i8 1, label %35
    i8 2, label %36
    i8 3, label %37
    i8 4, label %38
    i8 5, label %39
    i8 6, label %40
    i8 7, label %41
    i8 8, label %42
  ]

34:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi0EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

35:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi1EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

36:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi2EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

37:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi3EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

38:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi4EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

39:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi5EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

40:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi6EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

41:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi7EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

42:                                               ; preds = %32
  call void @_ZN4jpgd3RowILi8EE4idctEPiPKs(ptr noundef nonnull %.06876, ptr noundef %.07075)
  br label %43

43:                                               ; preds = %42, %41, %40, %39, %38, %37, %36, %35, %34, %32
  %44 = getelementptr inbounds i8, ptr %.07075, i64 16
  %45 = getelementptr inbounds i8, ptr %.06876, i64 32
  %46 = add nsw i32 %.06578, -1
  %47 = getelementptr inbounds i8, ptr %.06777, i64 1
  %48 = icmp ugt i32 %.06578, 1
  br i1 %48, label %32, label %49, !llvm.loop !12

49:                                               ; preds = %43
  %50 = zext nneg i32 %28 to i64
  %51 = getelementptr inbounds [64 x i8], ptr @_ZN4jpgdL16s_idct_col_tableE, i64 0, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !11
  switch i8 %52, label %.split83.us [
    i8 1, label %.split.us.preheader
    i8 2, label %.split.us84.preheader
    i8 3, label %.split.us88.preheader
    i8 4, label %.split.us92.preheader
    i8 5, label %.split.us96.preheader
    i8 6, label %.split.us100.preheader
    i8 7, label %.split.us104.preheader
    i8 8, label %.split.us108.preheader
  ]

.split.us108.preheader:                           ; preds = %49
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %53 = getelementptr inbounds i8, ptr %4, i64 4
  %54 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef nonnull %54, ptr noundef nonnull %53)
  %55 = getelementptr inbounds i8, ptr %4, i64 8
  %56 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef nonnull %56, ptr noundef nonnull %55)
  %57 = getelementptr inbounds i8, ptr %4, i64 12
  %58 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef nonnull %58, ptr noundef nonnull %57)
  %59 = getelementptr inbounds i8, ptr %4, i64 16
  %60 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef nonnull %60, ptr noundef nonnull %59)
  %61 = getelementptr inbounds i8, ptr %4, i64 20
  %62 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef nonnull %62, ptr noundef nonnull %61)
  %63 = getelementptr inbounds i8, ptr %4, i64 24
  %64 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef nonnull %64, ptr noundef nonnull %63)
  %65 = getelementptr inbounds i8, ptr %4, i64 28
  %66 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef nonnull %66, ptr noundef nonnull %65)
  br label %.split83.us

.split.us104.preheader:                           ; preds = %49
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %67 = getelementptr inbounds i8, ptr %4, i64 4
  %68 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef nonnull %68, ptr noundef nonnull %67)
  %69 = getelementptr inbounds i8, ptr %4, i64 8
  %70 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef nonnull %70, ptr noundef nonnull %69)
  %71 = getelementptr inbounds i8, ptr %4, i64 12
  %72 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef nonnull %72, ptr noundef nonnull %71)
  %73 = getelementptr inbounds i8, ptr %4, i64 16
  %74 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef nonnull %74, ptr noundef nonnull %73)
  %75 = getelementptr inbounds i8, ptr %4, i64 20
  %76 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef nonnull %76, ptr noundef nonnull %75)
  %77 = getelementptr inbounds i8, ptr %4, i64 24
  %78 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef nonnull %78, ptr noundef nonnull %77)
  %79 = getelementptr inbounds i8, ptr %4, i64 28
  %80 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef nonnull %80, ptr noundef nonnull %79)
  br label %.split83.us

.split.us100.preheader:                           ; preds = %49
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %81 = getelementptr inbounds i8, ptr %4, i64 4
  %82 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef nonnull %82, ptr noundef nonnull %81)
  %83 = getelementptr inbounds i8, ptr %4, i64 8
  %84 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef nonnull %84, ptr noundef nonnull %83)
  %85 = getelementptr inbounds i8, ptr %4, i64 12
  %86 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef nonnull %86, ptr noundef nonnull %85)
  %87 = getelementptr inbounds i8, ptr %4, i64 16
  %88 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef nonnull %88, ptr noundef nonnull %87)
  %89 = getelementptr inbounds i8, ptr %4, i64 20
  %90 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef nonnull %90, ptr noundef nonnull %89)
  %91 = getelementptr inbounds i8, ptr %4, i64 24
  %92 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef nonnull %92, ptr noundef nonnull %91)
  %93 = getelementptr inbounds i8, ptr %4, i64 28
  %94 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef nonnull %94, ptr noundef nonnull %93)
  br label %.split83.us

.split.us96.preheader:                            ; preds = %49
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %95 = getelementptr inbounds i8, ptr %4, i64 4
  %96 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef nonnull %96, ptr noundef nonnull %95)
  %97 = getelementptr inbounds i8, ptr %4, i64 8
  %98 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef nonnull %98, ptr noundef nonnull %97)
  %99 = getelementptr inbounds i8, ptr %4, i64 12
  %100 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef nonnull %100, ptr noundef nonnull %99)
  %101 = getelementptr inbounds i8, ptr %4, i64 16
  %102 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef nonnull %102, ptr noundef nonnull %101)
  %103 = getelementptr inbounds i8, ptr %4, i64 20
  %104 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef nonnull %104, ptr noundef nonnull %103)
  %105 = getelementptr inbounds i8, ptr %4, i64 24
  %106 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef nonnull %106, ptr noundef nonnull %105)
  %107 = getelementptr inbounds i8, ptr %4, i64 28
  %108 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef nonnull %108, ptr noundef nonnull %107)
  br label %.split83.us

.split.us92.preheader:                            ; preds = %49
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %109 = getelementptr inbounds i8, ptr %4, i64 4
  %110 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef nonnull %110, ptr noundef nonnull %109)
  %111 = getelementptr inbounds i8, ptr %4, i64 8
  %112 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef nonnull %112, ptr noundef nonnull %111)
  %113 = getelementptr inbounds i8, ptr %4, i64 12
  %114 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef nonnull %114, ptr noundef nonnull %113)
  %115 = getelementptr inbounds i8, ptr %4, i64 16
  %116 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef nonnull %116, ptr noundef nonnull %115)
  %117 = getelementptr inbounds i8, ptr %4, i64 20
  %118 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef nonnull %118, ptr noundef nonnull %117)
  %119 = getelementptr inbounds i8, ptr %4, i64 24
  %120 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef nonnull %120, ptr noundef nonnull %119)
  %121 = getelementptr inbounds i8, ptr %4, i64 28
  %122 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef nonnull %122, ptr noundef nonnull %121)
  br label %.split83.us

.split.us88.preheader:                            ; preds = %49
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %123 = getelementptr inbounds i8, ptr %4, i64 4
  %124 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef nonnull %124, ptr noundef nonnull %123)
  %125 = getelementptr inbounds i8, ptr %4, i64 8
  %126 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef nonnull %126, ptr noundef nonnull %125)
  %127 = getelementptr inbounds i8, ptr %4, i64 12
  %128 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef nonnull %128, ptr noundef nonnull %127)
  %129 = getelementptr inbounds i8, ptr %4, i64 16
  %130 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef nonnull %130, ptr noundef nonnull %129)
  %131 = getelementptr inbounds i8, ptr %4, i64 20
  %132 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef nonnull %132, ptr noundef nonnull %131)
  %133 = getelementptr inbounds i8, ptr %4, i64 24
  %134 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef nonnull %134, ptr noundef nonnull %133)
  %135 = getelementptr inbounds i8, ptr %4, i64 28
  %136 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef nonnull %136, ptr noundef nonnull %135)
  br label %.split83.us

.split.us84.preheader:                            ; preds = %49
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %137 = getelementptr inbounds i8, ptr %4, i64 4
  %138 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef nonnull %138, ptr noundef nonnull %137)
  %139 = getelementptr inbounds i8, ptr %4, i64 8
  %140 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef nonnull %140, ptr noundef nonnull %139)
  %141 = getelementptr inbounds i8, ptr %4, i64 12
  %142 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef nonnull %142, ptr noundef nonnull %141)
  %143 = getelementptr inbounds i8, ptr %4, i64 16
  %144 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef nonnull %144, ptr noundef nonnull %143)
  %145 = getelementptr inbounds i8, ptr %4, i64 20
  %146 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef nonnull %146, ptr noundef nonnull %145)
  %147 = getelementptr inbounds i8, ptr %4, i64 24
  %148 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef nonnull %148, ptr noundef nonnull %147)
  %149 = getelementptr inbounds i8, ptr %4, i64 28
  %150 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef nonnull %150, ptr noundef nonnull %149)
  br label %.split83.us

.split.us.preheader:                              ; preds = %49
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef %1, ptr noundef nonnull %4)
  %151 = getelementptr inbounds i8, ptr %4, i64 4
  %152 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef nonnull %152, ptr noundef nonnull %151)
  %153 = getelementptr inbounds i8, ptr %4, i64 8
  %154 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef nonnull %154, ptr noundef nonnull %153)
  %155 = getelementptr inbounds i8, ptr %4, i64 12
  %156 = getelementptr inbounds i8, ptr %1, i64 3
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef nonnull %156, ptr noundef nonnull %155)
  %157 = getelementptr inbounds i8, ptr %4, i64 16
  %158 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef nonnull %158, ptr noundef nonnull %157)
  %159 = getelementptr inbounds i8, ptr %4, i64 20
  %160 = getelementptr inbounds i8, ptr %1, i64 5
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef nonnull %160, ptr noundef nonnull %159)
  %161 = getelementptr inbounds i8, ptr %4, i64 24
  %162 = getelementptr inbounds i8, ptr %1, i64 6
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef nonnull %162, ptr noundef nonnull %161)
  %163 = getelementptr inbounds i8, ptr %4, i64 28
  %164 = getelementptr inbounds i8, ptr %1, i64 7
  call void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef nonnull %164, ptr noundef nonnull %163)
  br label %.split83.us

.split83.us:                                      ; preds = %49, %.split.us108.preheader, %.split.us104.preheader, %.split.us100.preheader, %.split.us96.preheader, %.split.us92.preheader, %.split.us88.preheader, %.split.us84.preheader, %.split.us.preheader
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.split83.us
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi0EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi1EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi2EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi3EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi4EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi5EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi6EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi7EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3RowILi8EE4idctEPiPKs(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi1EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi2EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi3EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi4EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi5EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi6EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi7EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd3ColILi8EE4idctEPhPKi(ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind }
attributes #4 = { 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 = !{!"short", !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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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