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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.jpgd::DCT_Upsample::Matrix44" = type { [4 x [4 x i32]] }
%"class.jpgd::jpeg_decoder" = type <{ [1 x %struct.__jmp_buf_tag], 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, [8 x ptr], [4 x ptr], [4 x ptr], i32, [4 x i32], [4 x i8], ptr, i32, i32, i8, [128 x i8], [8320 x i8], [128 x i8], [3 x i8], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i32, [4 x i32], [4 x i8], ptr, [10 x i32], ptr, [256 x i32], [256 x i32], [256 x i32], [256 x i32], ptr, ptr, i32, i8, [3 x i8], i32, [4 x i8] }>
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZN4jpgdL8s_max_rcE = external hidden constant [64 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4jpgd4idctEPKsPhi(ptr noundef, ptr noundef, i32 noundef) #0

; 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 uwtable
declare dso_local void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder20transform_mcu_expandEi(ptr noundef nonnull align 8 dereferenceable(13652) %0, i32 noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [64 x i16], align 16
  %9 = alloca i32, align 4
  %10 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %11 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %12 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %13 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %18 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %20 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 68
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  store ptr %21, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %22 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 70
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = load i32, ptr %4, align 4, !tbaa !9
  %25 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 60
  %26 = load i32, ptr %25, align 8, !tbaa !16
  %27 = mul nsw i32 %24, %26
  %28 = mul nsw i32 %27, 64
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i8, ptr %23, i64 %29
  store ptr %30, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %48, %2
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 62
  %34 = load i32, ptr %33, align 8, !tbaa !17
  %35 = icmp slt i32 %32, %34
  br i1 %35, label %36, label %51

36:                                               ; preds = %31
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 69
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !9
  call void @_ZN4jpgd4idctEPKsPhi(ptr noundef %37, ptr noundef %38, i32 noundef %43)
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds i16, ptr %44, i64 64
  store ptr %45, ptr %5, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 64
  store ptr %47, ptr %6, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %36
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %7, align 4, !tbaa !9
  br label %31, !llvm.loop !18

51:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %168, %51
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 2
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %171

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %10)
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %11)
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %12)
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %13)
  %57 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 69
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [10 x i32], ptr %57, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = icmp sge i32 %61, 1
  br i1 %62, label %63, label %64

63:                                               ; preds = %56
  br label %66

64:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1546, ptr noundef @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi) #7
  unreachable

65:                                               ; No predecessors!
  br label %66

66:                                               ; preds = %65, %63
  %67 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 69
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [10 x i32], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = icmp sle i32 %71, 64
  br i1 %72, label %73, label %74

73:                                               ; preds = %66
  br label %76

74:                                               ; preds = %66
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 1547, ptr noundef @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi) #7
  unreachable

75:                                               ; No predecessors!
  br label %76

76:                                               ; preds = %75, %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %77 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %19, i32 0, i32 69
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %7, align 4, !tbaa !9
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds [10 x i32], ptr %77, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = sub nsw i32 %82, 1
  store i32 %83, ptr %14, align 4, !tbaa !9
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = icmp sle i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %76
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %86, %76
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [64 x i8], ptr @_ZN4jpgdL8s_max_rcE, i64 0, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !20
  %92 = zext i8 %91 to i32
  switch i32 %92, label %138 [
    i32 17, label %93
    i32 18, label %96
    i32 34, label %99
    i32 50, label %102
    i32 51, label %105
    i32 52, label %108
    i32 68, label %111
    i32 84, label %114
    i32 85, label %117
    i32 86, label %120
    i32 102, label %123
    i32 118, label %126
    i32 119, label %129
    i32 120, label %132
    i32 136, label %135
  ]

93:                                               ; preds = %87
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %94)
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %95)
  br label %139

96:                                               ; preds = %87
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %97)
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %98)
  br label %139

99:                                               ; preds = %87
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %100)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %101)
  br label %139

102:                                              ; preds = %87
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %103)
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %104)
  br label %139

105:                                              ; preds = %87
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %106)
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %107)
  br label %139

108:                                              ; preds = %87
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %109)
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %110)
  br label %139

111:                                              ; preds = %87
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %112)
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %113)
  br label %139

114:                                              ; preds = %87
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %115)
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %116)
  br label %139

117:                                              ; preds = %87
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %118)
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %119)
  br label %139

120:                                              ; preds = %87
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %121)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %122)
  br label %139

123:                                              ; preds = %87
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %124)
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %125)
  br label %139

126:                                              ; preds = %87
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %127)
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %128)
  br label %139

129:                                              ; preds = %87
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %130)
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %131)
  br label %139

132:                                              ; preds = %87
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %133)
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %134)
  br label %139

135:                                              ; preds = %87
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3P_QILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %136)
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample3R_SILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef %137)
  br label %139

138:                                              ; preds = %87
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 1614, ptr noundef @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi) #7
  unreachable

139:                                              ; preds = %135, %132, %129, %126, %123, %120, %117, %114, %111, %108, %105, %102, %99, %96, %93
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #6
  call void @_ZN4jpgd12DCT_UpsampleplERKNS0_8Matrix44ES3_(ptr dead_on_unwind writable sret(%"struct.jpgd::DCT_Upsample::Matrix44") align 4 %15, ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11)
  %140 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN4jpgd12DCT_Upsample8Matrix44mIERKS1_(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(64) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr %10, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #6
  call void @_ZN4jpgd12DCT_UpsampleplERKNS0_8Matrix44ES3_(ptr dead_on_unwind writable sret(%"struct.jpgd::DCT_Upsample::Matrix44") align 4 %17, ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13)
  %141 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN4jpgd12DCT_Upsample8Matrix44mIERKS1_(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr %12, ptr %18, align 8, !tbaa !5
  %142 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413add_and_storeEPsRKS1_S4_(ptr noundef %142, ptr noundef nonnull align 4 dereferenceable(64) %15, ptr noundef nonnull align 4 dereferenceable(64) %17)
  %143 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef %143, ptr noundef %144)
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 64
  store ptr %146, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413sub_and_storeEPsRKS1_S4_(ptr noundef %147, ptr noundef nonnull align 4 dereferenceable(64) %15, ptr noundef nonnull align 4 dereferenceable(64) %17)
  %148 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef %148, ptr noundef %149)
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds i8, ptr %150, i64 64
  store ptr %151, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413add_and_storeEPsRKS1_S4_(ptr noundef %152, ptr noundef nonnull align 4 dereferenceable(64) %153, ptr noundef nonnull align 4 dereferenceable(64) %154)
  %155 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef %155, ptr noundef %156)
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds i8, ptr %157, i64 64
  store ptr %158, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413sub_and_storeEPsRKS1_S4_(ptr noundef %159, ptr noundef nonnull align 4 dereferenceable(64) %160, ptr noundef nonnull align 4 dereferenceable(64) %161)
  %162 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 0
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef %162, ptr noundef %163)
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds i8, ptr %164, i64 64
  store ptr %165, ptr %6, align 8, !tbaa !5
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = getelementptr inbounds i16, ptr %166, i64 64
  store ptr %167, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #6
  br label %168

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

171:                                              ; preds = %55
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4jpgd12DCT_UpsampleplERKNS0_8Matrix44ES3_(ptr dead_on_unwind noalias writable sret(%"struct.jpgd::DCT_Upsample::Matrix44") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN4jpgd12DCT_Upsample8Matrix44mIERKS1_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample8Matrix4413add_and_storeEPsRKS1_S4_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample8Matrix4413sub_and_storeEPsRKS1_S4_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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, !6, i64 9472}
!12 = !{!"_ZTSN4jpgd12jpeg_decoderE", !7, i64 0, !6, i64 200, !10, i64 208, !10, i64 212, !6, i64 216, !10, i64 224, !7, i64 228, !7, i64 240, !7, i64 304, !7, i64 368, !10, i64 400, !10, i64 404, !7, i64 408, !7, i64 424, !7, i64 440, !7, i64 456, !7, i64 472, !7, i64 488, !10, i64 504, !7, i64 508, !7, i64 524, !7, i64 540, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !7, i64 596, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !7, i64 656, !7, i64 720, !7, i64 752, !10, i64 784, !7, i64 788, !6, i64 808, !10, i64 816, !10, i64 820, !13, i64 824, !7, i64 825, !7, i64 953, !7, i64 9273, !10, i64 9404, !10, i64 9408, !10, i64 9412, !10, i64 9416, !10, i64 9420, !10, i64 9424, !10, i64 9428, !10, i64 9432, !10, i64 9436, !10, i64 9440, !13, i64 9444, !10, i64 9448, !7, i64 9452, !6, i64 9472, !7, i64 9480, !6, i64 9520, !7, i64 9528, !7, i64 10552, !7, i64 11576, !7, i64 12600, !6, i64 13624, !6, i64 13632, !14, i64 13640, !13, i64 13644, !10, i64 13648}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN4jpgd11jpgd_statusE", !7, i64 0}
!15 = !{!12, !6, i64 9520}
!16 = !{!12, !10, i64 9432}
!17 = !{!12, !10, i64 9440}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !19}


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

%"struct.jpgd::DCT_Upsample::Matrix44" = type { [4 x [4 x i32]] }

@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZN4jpgdL8s_max_rcE = external hidden local_unnamed_addr constant [64 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4jpgd4idctEPKsPhi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; 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 uwtable
declare dso_local void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4jpgd12jpeg_decoder20transform_mcu_expandEi(ptr nocapture noundef nonnull readonly align 8 dereferenceable(13652) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = alloca [64 x i16], align 16
  %4 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %5 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %6 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %7 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %8 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %9 = alloca %"struct.jpgd::DCT_Upsample::Matrix44", align 4
  %10 = getelementptr inbounds i8, ptr %0, i64 9472
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 9520
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %0, i64 9432
  %15 = load i32, ptr %14, align 8, !tbaa !14
  %16 = shl i32 %1, 6
  %17 = mul i32 %16, %15
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds i8, ptr %13, i64 %18
  %20 = getelementptr inbounds i8, ptr %0, i64 9440
  %21 = load i32, ptr %20, align 8, !tbaa !15
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %23 = getelementptr inbounds i8, ptr %0, i64 9480
  br label %24

24:                                               ; preds = %.lr.ph, %24
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %24 ]
  %.066 = phi ptr [ %11, %.lr.ph ], [ %27, %24 ]
  %.05865 = phi ptr [ %19, %.lr.ph ], [ %28, %24 ]
  %25 = getelementptr inbounds [10 x i32], ptr %23, i64 0, i64 %indvars.iv
  %26 = load i32, ptr %25, align 4, !tbaa !16
  tail call void @_ZN4jpgd4idctEPKsPhi(ptr noundef %.066, ptr noundef %.05865, i32 noundef %26)
  %27 = getelementptr inbounds i8, ptr %.066, i64 128
  %28 = getelementptr inbounds i8, ptr %.05865, i64 64
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i32, ptr %20, align 8, !tbaa !15
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next, %30
  br i1 %31, label %24, label %._crit_edge.loopexit, !llvm.loop !17

._crit_edge.loopexit:                             ; preds = %24
  %32 = and i64 %indvars.iv.next, 4294967295
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.060.lcssa = phi i64 [ 0, %2 ], [ %32, %._crit_edge.loopexit ]
  %.058.lcssa = phi ptr [ %19, %2 ], [ %28, %._crit_edge.loopexit ]
  %.0.lcssa = phi ptr [ %11, %2 ], [ %27, %._crit_edge.loopexit ]
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #6
  %33 = getelementptr inbounds i8, ptr %0, i64 9480
  br label %35

34:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #6
  ret void

35:                                               ; preds = %._crit_edge, %65
  %indvars.iv76 = phi i64 [ %.060.lcssa, %._crit_edge ], [ %indvars.iv.next77, %65 ]
  %.172 = phi ptr [ %.0.lcssa, %._crit_edge ], [ %72, %65 ]
  %.15971 = phi ptr [ %.058.lcssa, %._crit_edge ], [ %71, %65 ]
  %36 = phi i1 [ true, %._crit_edge ], [ false, %65 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %4)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %5)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %37 = getelementptr inbounds [10 x i32], ptr %33, i64 0, i64 %indvars.iv76
  %38 = load i32, ptr %37, align 4, !tbaa !16
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1546, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi) #7
  unreachable

41:                                               ; preds = %35
  %42 = icmp ult i32 %38, 65
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 1547, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi) #7
  unreachable

44:                                               ; preds = %41
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %45 = add nsw i32 %38, -1
  %46 = zext nneg i32 %45 to i64
  %47 = getelementptr inbounds [64 x i8], ptr @_ZN4jpgdL8s_max_rcE, i64 0, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !19
  switch i8 %48, label %64 [
    i8 17, label %49
    i8 18, label %50
    i8 34, label %51
    i8 50, label %52
    i8 51, label %53
    i8 52, label %54
    i8 68, label %55
    i8 84, label %56
    i8 85, label %57
    i8 86, label %58
    i8 102, label %59
    i8 118, label %60
    i8 119, label %61
    i8 120, label %62
    i8 -120, label %63
  ]

49:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

50:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

51:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

52:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

53:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

54:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

55:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

56:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

57:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

58:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

59:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

60:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

61:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

62:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

63:                                               ; preds = %44
  call void @_ZN4jpgd12DCT_Upsample3P_QILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef %.172)
  call void @_ZN4jpgd12DCT_Upsample3R_SILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %.172)
  br label %65

64:                                               ; preds = %44
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 1614, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4jpgd12jpeg_decoder20transform_mcu_expandEi) #7
  unreachable

65:                                               ; preds = %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @_ZN4jpgd12DCT_UpsampleplERKNS0_8Matrix44ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.jpgd::DCT_Upsample::Matrix44") align 4 %8, ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5)
  %66 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN4jpgd12DCT_Upsample8Matrix44mIERKS1_(ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %5)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @_ZN4jpgd12DCT_UpsampleplERKNS0_8Matrix44ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.jpgd::DCT_Upsample::Matrix44") align 4 %9, ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7)
  %67 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN4jpgd12DCT_Upsample8Matrix44mIERKS1_(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %7)
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413add_and_storeEPsRKS1_S4_(ptr noundef nonnull %3, ptr noundef nonnull align 4 dereferenceable(64) %8, ptr noundef nonnull align 4 dereferenceable(64) %9)
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef nonnull %3, ptr noundef %.15971)
  %68 = getelementptr inbounds i8, ptr %.15971, i64 64
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413sub_and_storeEPsRKS1_S4_(ptr noundef nonnull %3, ptr noundef nonnull align 4 dereferenceable(64) %8, ptr noundef nonnull align 4 dereferenceable(64) %9)
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef nonnull %3, ptr noundef nonnull %68)
  %69 = getelementptr inbounds i8, ptr %.15971, i64 128
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413add_and_storeEPsRKS1_S4_(ptr noundef nonnull %3, ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef nonnull %3, ptr noundef nonnull %69)
  %70 = getelementptr inbounds i8, ptr %.15971, i64 192
  call void @_ZN4jpgd12DCT_Upsample8Matrix4413sub_and_storeEPsRKS1_S4_(ptr noundef nonnull %3, ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void @_ZN4jpgd8idct_4x4EPKsPh(ptr noundef nonnull %3, ptr noundef nonnull %70)
  %71 = getelementptr inbounds i8, ptr %.15971, i64 256
  %72 = getelementptr inbounds i8, ptr %.172, i64 128
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  br i1 %36, label %35, label %34, !llvm.loop !20
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample8Matrix44C2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi1EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi1ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi2ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi2EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi3EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi3ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi4ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi4EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi5EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi5ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi6ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi6EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi7EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi7ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3P_QILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample3R_SILi8ELi8EE4calcERNS0_8Matrix44ES4_PKs(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4jpgd12DCT_UpsampleplERKNS0_8Matrix44ES3_(ptr dead_on_unwind noalias writable sret(%"struct.jpgd::DCT_Upsample::Matrix44") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN4jpgd12DCT_Upsample8Matrix44mIERKS1_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample8Matrix4413add_and_storeEPsRKS1_S4_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4jpgd12DCT_Upsample8Matrix4413sub_and_storeEPsRKS1_S4_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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, !9, i64 9472}
!6 = !{!"_ZTSN4jpgd12jpeg_decoderE", !7, i64 0, !9, i64 200, !10, i64 208, !10, i64 212, !9, i64 216, !10, i64 224, !7, i64 228, !7, i64 240, !7, i64 304, !7, i64 368, !10, i64 400, !10, i64 404, !7, i64 408, !7, i64 424, !7, i64 440, !7, i64 456, !7, i64 472, !7, i64 488, !10, i64 504, !7, i64 508, !7, i64 524, !7, i64 540, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !7, i64 596, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !7, i64 656, !7, i64 720, !7, i64 752, !10, i64 784, !7, i64 788, !9, i64 808, !10, i64 816, !10, i64 820, !11, i64 824, !7, i64 825, !7, i64 953, !7, i64 9273, !10, i64 9404, !10, i64 9408, !10, i64 9412, !10, i64 9416, !10, i64 9420, !10, i64 9424, !10, i64 9428, !10, i64 9432, !10, i64 9436, !10, i64 9440, !11, i64 9444, !10, i64 9448, !7, i64 9452, !9, i64 9472, !7, i64 9480, !9, i64 9520, !7, i64 9528, !7, i64 10552, !7, i64 11576, !7, i64 12600, !9, i64 13624, !9, i64 13632, !12, i64 13640, !11, i64 13644, !10, i64 13648}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSN4jpgd11jpgd_statusE", !7, i64 0}
!13 = !{!6, !9, i64 9520}
!14 = !{!6, !10, i64 9432}
!15 = !{!6, !10, i64 9440}
!16 = !{!10, !10, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !18}


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