; LLVM IR from kobalicek/simdtests :: dejpeg/dejpeg_sse2.ll (Z26dejpeg_ycbcr_to_rgb32_sse2PhPKhS1_S1_j)

; 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.DeJPEG_SSE2Consts = type { [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [4 x i32], [4 x i32], [4 x i32], [8 x i16], [4 x i32], [8 x i16], [8 x i16], [8 x i16] }

@_ZL18dejpeg_sse2_consts = external hidden constant %struct.DeJPEG_SSE2Consts, align 16

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_add_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef, i32 noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL17_mm_setzero_si128v() #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26dejpeg_ycbcr_to_rgb32_sse2PhPKhS1_S1_j(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca <2 x i64>, align 16
  %13 = alloca <2 x i64>, align 16
  %14 = alloca <2 x i64>, align 16
  %15 = alloca <2 x i64>, align 16
  %16 = alloca <2 x i64>, align 16
  %17 = alloca <2 x i64>, align 16
  %18 = alloca <2 x i64>, align 16
  %19 = alloca <2 x i64>, align 16
  %20 = alloca <2 x i64>, align 16
  %21 = alloca <2 x i64>, align 16
  %22 = alloca <2 x i64>, align 16
  %23 = alloca <2 x i64>, align 16
  %24 = alloca <2 x i64>, align 16
  %25 = alloca <2 x i64>, align 16
  %26 = alloca <2 x i64>, align 16
  %27 = alloca <2 x i64>, align 16
  %28 = alloca <2 x i64>, align 16
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %35 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %35, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %36 = call noundef <2 x i64> @_ZL17_mm_setzero_si128v()
  store <2 x i64> %36, ptr %12, align 16, !tbaa !11
  br label %37

37:                                               ; preds = %40, %5
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = icmp uge i32 %38, 8
  br i1 %39, label %40, label %178

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = call noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef %41)
  store <2 x i64> %42, ptr %13, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = call noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef %43)
  store <2 x i64> %44, ptr %14, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef %45)
  store <2 x i64> %46, ptr %15, align 16, !tbaa !11
  %47 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %48 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  %49 = call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %47, <2 x i64> noundef %48)
  store <2 x i64> %49, ptr %13, align 16, !tbaa !11
  %50 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  %51 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  %52 = call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %50, <2 x i64> noundef %51)
  %53 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 11), align 16, !tbaa !11
  %54 = call noundef <2 x i64> @_ZL13_mm_add_epi16Dv2_xS_(<2 x i64> noundef %52, <2 x i64> noundef %53)
  store <2 x i64> %54, ptr %14, align 16, !tbaa !11
  %55 = load <2 x i64>, ptr %15, align 16, !tbaa !11
  %56 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  %57 = call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %55, <2 x i64> noundef %56)
  %58 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 11), align 16, !tbaa !11
  %59 = call noundef <2 x i64> @_ZL13_mm_add_epi16Dv2_xS_(<2 x i64> noundef %57, <2 x i64> noundef %58)
  store <2 x i64> %59, ptr %15, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %60 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %61 = load <2 x i64>, ptr %15, align 16, !tbaa !11
  %62 = call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %60, <2 x i64> noundef %61)
  %63 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 13), align 16, !tbaa !11
  %64 = call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %62, <2 x i64> noundef %63)
  store <2 x i64> %64, ptr %16, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %65 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %66 = load <2 x i64>, ptr %15, align 16, !tbaa !11
  %67 = call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %65, <2 x i64> noundef %66)
  %68 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 13), align 16, !tbaa !11
  %69 = call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %67, <2 x i64> noundef %68)
  store <2 x i64> %69, ptr %17, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %70 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %71 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  %72 = call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %70, <2 x i64> noundef %71)
  %73 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 14), align 16, !tbaa !11
  %74 = call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %72, <2 x i64> noundef %73)
  store <2 x i64> %74, ptr %18, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %75 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %76 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  %77 = call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %75, <2 x i64> noundef %76)
  %78 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 14), align 16, !tbaa !11
  %79 = call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %77, <2 x i64> noundef %78)
  store <2 x i64> %79, ptr %19, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %80 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  %81 = load <2 x i64>, ptr %15, align 16, !tbaa !11
  %82 = call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %80, <2 x i64> noundef %81)
  %83 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 15), align 16, !tbaa !11
  %84 = call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %82, <2 x i64> noundef %83)
  store <2 x i64> %84, ptr %20, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %85 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  %86 = load <2 x i64>, ptr %15, align 16, !tbaa !11
  %87 = call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %85, <2 x i64> noundef %86)
  %88 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 15), align 16, !tbaa !11
  %89 = call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %87, <2 x i64> noundef %88)
  store <2 x i64> %89, ptr %21, align 16, !tbaa !11
  %90 = load <2 x i64>, ptr %20, align 16, !tbaa !11
  %91 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %92 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  %93 = call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %91, <2 x i64> noundef %92)
  %94 = call noundef <2 x i64> @_ZL14_mm_slli_epi32Dv2_xi(<2 x i64> noundef %93, i32 noundef 12)
  %95 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %90, <2 x i64> noundef %94)
  store <2 x i64> %95, ptr %20, align 16, !tbaa !11
  %96 = load <2 x i64>, ptr %21, align 16, !tbaa !11
  %97 = load <2 x i64>, ptr %13, align 16, !tbaa !11
  %98 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  %99 = call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %97, <2 x i64> noundef %98)
  %100 = call noundef <2 x i64> @_ZL14_mm_slli_epi32Dv2_xi(<2 x i64> noundef %99, i32 noundef 12)
  %101 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %96, <2 x i64> noundef %100)
  store <2 x i64> %101, ptr %21, align 16, !tbaa !11
  %102 = load <2 x i64>, ptr %16, align 16, !tbaa !11
  %103 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 12), align 16, !tbaa !11
  %104 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %102, <2 x i64> noundef %103)
  store <2 x i64> %104, ptr %16, align 16, !tbaa !11
  %105 = load <2 x i64>, ptr %17, align 16, !tbaa !11
  %106 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 12), align 16, !tbaa !11
  %107 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %105, <2 x i64> noundef %106)
  store <2 x i64> %107, ptr %17, align 16, !tbaa !11
  %108 = load <2 x i64>, ptr %18, align 16, !tbaa !11
  %109 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 12), align 16, !tbaa !11
  %110 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %108, <2 x i64> noundef %109)
  store <2 x i64> %110, ptr %18, align 16, !tbaa !11
  %111 = load <2 x i64>, ptr %19, align 16, !tbaa !11
  %112 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 12), align 16, !tbaa !11
  %113 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %111, <2 x i64> noundef %112)
  store <2 x i64> %113, ptr %19, align 16, !tbaa !11
  %114 = load <2 x i64>, ptr %20, align 16, !tbaa !11
  %115 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 12), align 16, !tbaa !11
  %116 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %114, <2 x i64> noundef %115)
  store <2 x i64> %116, ptr %20, align 16, !tbaa !11
  %117 = load <2 x i64>, ptr %21, align 16, !tbaa !11
  %118 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 12), align 16, !tbaa !11
  %119 = call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %117, <2 x i64> noundef %118)
  store <2 x i64> %119, ptr %21, align 16, !tbaa !11
  %120 = load <2 x i64>, ptr %16, align 16, !tbaa !11
  %121 = call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %120, i32 noundef 12)
  store <2 x i64> %121, ptr %16, align 16, !tbaa !11
  %122 = load <2 x i64>, ptr %17, align 16, !tbaa !11
  %123 = call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %122, i32 noundef 12)
  store <2 x i64> %123, ptr %17, align 16, !tbaa !11
  %124 = load <2 x i64>, ptr %18, align 16, !tbaa !11
  %125 = call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %124, i32 noundef 12)
  store <2 x i64> %125, ptr %18, align 16, !tbaa !11
  %126 = load <2 x i64>, ptr %19, align 16, !tbaa !11
  %127 = call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %126, i32 noundef 12)
  store <2 x i64> %127, ptr %19, align 16, !tbaa !11
  %128 = load <2 x i64>, ptr %20, align 16, !tbaa !11
  %129 = call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %128, i32 noundef 12)
  store <2 x i64> %129, ptr %20, align 16, !tbaa !11
  %130 = load <2 x i64>, ptr %21, align 16, !tbaa !11
  %131 = call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %130, i32 noundef 12)
  store <2 x i64> %131, ptr %21, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %132 = load <2 x i64>, ptr %16, align 16, !tbaa !11
  %133 = load <2 x i64>, ptr %17, align 16, !tbaa !11
  %134 = call noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef %132, <2 x i64> noundef %133)
  store <2 x i64> %134, ptr %22, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %135 = load <2 x i64>, ptr %20, align 16, !tbaa !11
  %136 = load <2 x i64>, ptr %21, align 16, !tbaa !11
  %137 = call noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef %135, <2 x i64> noundef %136)
  store <2 x i64> %137, ptr %23, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #4
  %138 = load <2 x i64>, ptr %18, align 16, !tbaa !11
  %139 = load <2 x i64>, ptr %19, align 16, !tbaa !11
  %140 = call noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef %138, <2 x i64> noundef %139)
  store <2 x i64> %140, ptr %24, align 16, !tbaa !11
  %141 = load <2 x i64>, ptr %22, align 16, !tbaa !11
  %142 = load <2 x i64>, ptr %22, align 16, !tbaa !11
  %143 = call noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef %141, <2 x i64> noundef %142)
  store <2 x i64> %143, ptr %22, align 16, !tbaa !11
  %144 = load <2 x i64>, ptr %23, align 16, !tbaa !11
  %145 = load <2 x i64>, ptr %23, align 16, !tbaa !11
  %146 = call noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef %144, <2 x i64> noundef %145)
  store <2 x i64> %146, ptr %23, align 16, !tbaa !11
  %147 = load <2 x i64>, ptr %24, align 16, !tbaa !11
  %148 = load <2 x i64>, ptr %24, align 16, !tbaa !11
  %149 = call noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef %147, <2 x i64> noundef %148)
  store <2 x i64> %149, ptr %24, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #4
  %150 = load <2 x i64>, ptr %22, align 16, !tbaa !11
  %151 = load <2 x i64>, ptr getelementptr inbounds (%struct.DeJPEG_SSE2Consts, ptr @_ZL18dejpeg_sse2_consts, i32 0, i32 10), align 16, !tbaa !11
  %152 = call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %150, <2 x i64> noundef %151)
  store <2 x i64> %152, ptr %25, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  %153 = load <2 x i64>, ptr %24, align 16, !tbaa !11
  %154 = load <2 x i64>, ptr %23, align 16, !tbaa !11
  %155 = call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %153, <2 x i64> noundef %154)
  store <2 x i64> %155, ptr %26, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  %156 = load <2 x i64>, ptr %26, align 16, !tbaa !11
  %157 = load <2 x i64>, ptr %25, align 16, !tbaa !11
  %158 = call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %156, <2 x i64> noundef %157)
  store <2 x i64> %158, ptr %27, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
  %159 = load <2 x i64>, ptr %26, align 16, !tbaa !11
  %160 = load <2 x i64>, ptr %25, align 16, !tbaa !11
  %161 = call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %159, <2 x i64> noundef %160)
  store <2 x i64> %161, ptr %28, align 16, !tbaa !11
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 0
  %164 = load <2 x i64>, ptr %27, align 16, !tbaa !11
  call void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef %163, <2 x i64> noundef %164)
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds i8, ptr %165, i64 16
  %167 = load <2 x i64>, ptr %28, align 16, !tbaa !11
  call void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef %166, <2 x i64> noundef %167)
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds i8, ptr %168, i64 32
  store ptr %169, ptr %6, align 8, !tbaa !5
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %170, i64 8
  store ptr %171, ptr %7, align 8, !tbaa !5
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  store ptr %173, ptr %8, align 8, !tbaa !5
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %174, i64 8
  store ptr %175, ptr %9, align 8, !tbaa !5
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = sub i32 %176, 8
  store i32 %177, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  br label %37, !llvm.loop !12

178:                                              ; preds = %37
  br label %179

179:                                              ; preds = %182, %178
  %180 = load i32, ptr %11, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %236

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %183, i64 0
  %185 = load i8, ptr %184, align 1, !tbaa !11
  %186 = zext i8 %185 to i32
  %187 = shl i32 %186, 12
  %188 = add nsw i32 %187, 2048
  store i32 %188, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %189, i64 0
  %191 = load i8, ptr %190, align 1, !tbaa !11
  %192 = zext i8 %191 to i32
  %193 = sub nsw i32 %192, 128
  store i32 %193, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds i8, ptr %194, i64 0
  %196 = load i8, ptr %195, align 1, !tbaa !11
  %197 = zext i8 %196 to i32
  %198 = sub nsw i32 %197, 128
  store i32 %198, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %199 = load i32, ptr %29, align 4, !tbaa !9
  %200 = load i32, ptr %30, align 4, !tbaa !9
  %201 = mul nsw i32 %200, 5743
  %202 = add nsw i32 %199, %201
  store i32 %202, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %203 = load i32, ptr %29, align 4, !tbaa !9
  %204 = load i32, ptr %30, align 4, !tbaa !9
  %205 = mul nsw i32 %204, 2925
  %206 = sub nsw i32 %203, %205
  %207 = load i32, ptr %31, align 4, !tbaa !9
  %208 = mul nsw i32 %207, 1410
  %209 = sub nsw i32 %206, %208
  store i32 %209, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %210 = load i32, ptr %29, align 4, !tbaa !9
  %211 = load i32, ptr %31, align 4, !tbaa !9
  %212 = mul nsw i32 %211, 7258
  %213 = add nsw i32 %210, %212
  store i32 %213, ptr %34, align 4, !tbaa !9
  %214 = load i32, ptr %32, align 4, !tbaa !9
  %215 = ashr i32 %214, 12
  %216 = call noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef %215)
  %217 = load i32, ptr %33, align 4, !tbaa !9
  %218 = ashr i32 %217, 12
  %219 = call noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef %218)
  %220 = load i32, ptr %34, align 4, !tbaa !9
  %221 = ashr i32 %220, 12
  %222 = call noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef %221)
  %223 = call noundef i32 @_ZL14dejepeg_pack32IhEjT_S0_S0_S0_(i8 noundef zeroext -1, i8 noundef zeroext %216, i8 noundef zeroext %219, i8 noundef zeroext %222)
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds i32, ptr %224, i64 0
  store i32 %223, ptr %225, align 4, !tbaa !9
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds i8, ptr %226, i64 4
  store ptr %227, ptr %6, align 8, !tbaa !5
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds i8, ptr %228, i64 1
  store ptr %229, ptr %7, align 8, !tbaa !5
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  %231 = getelementptr inbounds i8, ptr %230, i64 1
  store ptr %231, ptr %8, align 8, !tbaa !5
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = getelementptr inbounds i8, ptr %232, i64 1
  store ptr %233, ptr %9, align 8, !tbaa !5
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = sub i32 %234, 1
  store i32 %235, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %179, !llvm.loop !14

236:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_slli_epi32Dv2_xi(<2 x i64> noundef, i32 noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL14dejepeg_pack32IhEjT_S0_S0_S0_(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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.DeJPEG_SSE2Consts = type { [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [8 x i16], [4 x i32], [4 x i32], [4 x i32], [8 x i16], [4 x i32], [8 x i16], [8 x i16], [8 x i16] }

@_ZL18dejpeg_sse2_consts = external hidden local_unnamed_addr constant %struct.DeJPEG_SSE2Consts, align 16

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_add_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL17_mm_setzero_si128v() local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z26dejpeg_ycbcr_to_rgb32_sse2PhPKhS1_S1_j(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = tail call noundef <2 x i64> @_ZL17_mm_setzero_si128v()
  %7 = icmp ugt i32 %4, 7
  br i1 %7, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %5
  %8 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @_ZL18dejpeg_sse2_consts, i64 176), align 16
  %9 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @_ZL18dejpeg_sse2_consts, i64 208), align 16
  %10 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @_ZL18dejpeg_sse2_consts, i64 224), align 16
  %11 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @_ZL18dejpeg_sse2_consts, i64 240), align 16
  %12 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @_ZL18dejpeg_sse2_consts, i64 192), align 16
  %13 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @_ZL18dejpeg_sse2_consts, i64 160), align 16
  br label %14

.preheader:                                       ; preds = %14, %5
  %.094.lcssa = phi i32 [ %4, %5 ], [ %68, %14 ]
  %.092.lcssa = phi ptr [ %3, %5 ], [ %67, %14 ]
  %.090.lcssa = phi ptr [ %2, %5 ], [ %66, %14 ]
  %.088.lcssa = phi ptr [ %1, %5 ], [ %65, %14 ]
  %.0.lcssa = phi ptr [ %0, %5 ], [ %64, %14 ]
  %.not106 = icmp eq i32 %.094.lcssa, 0
  br i1 %.not106, label %._crit_edge, label %.lr.ph112

14:                                               ; preds = %.lr.ph, %14
  %.0101 = phi ptr [ %0, %.lr.ph ], [ %64, %14 ]
  %.088100 = phi ptr [ %1, %.lr.ph ], [ %65, %14 ]
  %.09099 = phi ptr [ %2, %.lr.ph ], [ %66, %14 ]
  %.09298 = phi ptr [ %3, %.lr.ph ], [ %67, %14 ]
  %.09497 = phi i32 [ %4, %.lr.ph ], [ %68, %14 ]
  %15 = tail call noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef %.088100)
  %16 = tail call noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef %.09099)
  %17 = tail call noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef %.09298)
  %18 = tail call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %15, <2 x i64> noundef %6)
  %19 = tail call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %16, <2 x i64> noundef %6)
  %20 = tail call noundef <2 x i64> @_ZL13_mm_add_epi16Dv2_xS_(<2 x i64> noundef %19, <2 x i64> noundef %8)
  %21 = tail call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %17, <2 x i64> noundef %6)
  %22 = tail call noundef <2 x i64> @_ZL13_mm_add_epi16Dv2_xS_(<2 x i64> noundef %21, <2 x i64> noundef %8)
  %23 = tail call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %18, <2 x i64> noundef %22)
  %24 = tail call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %23, <2 x i64> noundef %9)
  %25 = tail call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %18, <2 x i64> noundef %22)
  %26 = tail call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %25, <2 x i64> noundef %9)
  %27 = tail call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %18, <2 x i64> noundef %20)
  %28 = tail call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %27, <2 x i64> noundef %10)
  %29 = tail call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %18, <2 x i64> noundef %20)
  %30 = tail call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %29, <2 x i64> noundef %10)
  %31 = tail call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %20, <2 x i64> noundef %22)
  %32 = tail call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %31, <2 x i64> noundef %11)
  %33 = tail call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %20, <2 x i64> noundef %22)
  %34 = tail call noundef <2 x i64> @_ZL14_mm_madd_epi16Dv2_xS_(<2 x i64> noundef %33, <2 x i64> noundef %11)
  %35 = tail call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %18, <2 x i64> noundef %6)
  %36 = tail call noundef <2 x i64> @_ZL14_mm_slli_epi32Dv2_xi(<2 x i64> noundef %35, i32 noundef 12)
  %37 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %32, <2 x i64> noundef %36)
  %38 = tail call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %18, <2 x i64> noundef %6)
  %39 = tail call noundef <2 x i64> @_ZL14_mm_slli_epi32Dv2_xi(<2 x i64> noundef %38, i32 noundef 12)
  %40 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %34, <2 x i64> noundef %39)
  %41 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %24, <2 x i64> noundef %12)
  %42 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %26, <2 x i64> noundef %12)
  %43 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %28, <2 x i64> noundef %12)
  %44 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %30, <2 x i64> noundef %12)
  %45 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %37, <2 x i64> noundef %12)
  %46 = tail call noundef <2 x i64> @_ZL13_mm_add_epi32Dv2_xS_(<2 x i64> noundef %40, <2 x i64> noundef %12)
  %47 = tail call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %41, i32 noundef 12)
  %48 = tail call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %42, i32 noundef 12)
  %49 = tail call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %43, i32 noundef 12)
  %50 = tail call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %44, i32 noundef 12)
  %51 = tail call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %45, i32 noundef 12)
  %52 = tail call noundef <2 x i64> @_ZL14_mm_srai_epi32Dv2_xi(<2 x i64> noundef %46, i32 noundef 12)
  %53 = tail call noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef %47, <2 x i64> noundef %48)
  %54 = tail call noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef %51, <2 x i64> noundef %52)
  %55 = tail call noundef <2 x i64> @_ZL15_mm_packs_epi32Dv2_xS_(<2 x i64> noundef %49, <2 x i64> noundef %50)
  %56 = tail call noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef %53, <2 x i64> noundef %53)
  %57 = tail call noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef %54, <2 x i64> noundef %54)
  %58 = tail call noundef <2 x i64> @_ZL16_mm_packus_epi16Dv2_xS_(<2 x i64> noundef %55, <2 x i64> noundef %55)
  %59 = tail call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %56, <2 x i64> noundef %13)
  %60 = tail call noundef <2 x i64> @_ZL17_mm_unpacklo_epi8Dv2_xS_(<2 x i64> noundef %58, <2 x i64> noundef %57)
  %61 = tail call noundef <2 x i64> @_ZL18_mm_unpacklo_epi16Dv2_xS_(<2 x i64> noundef %60, <2 x i64> noundef %59)
  %62 = tail call noundef <2 x i64> @_ZL18_mm_unpackhi_epi16Dv2_xS_(<2 x i64> noundef %60, <2 x i64> noundef %59)
  tail call void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef %.0101, <2 x i64> noundef %61)
  %63 = getelementptr inbounds i8, ptr %.0101, i64 16
  tail call void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef nonnull %63, <2 x i64> noundef %62)
  %64 = getelementptr inbounds i8, ptr %.0101, i64 32
  %65 = getelementptr inbounds i8, ptr %.088100, i64 8
  %66 = getelementptr inbounds i8, ptr %.09099, i64 8
  %67 = getelementptr inbounds i8, ptr %.09298, i64 8
  %68 = add i32 %.09497, -8
  %69 = icmp ugt i32 %68, 7
  br i1 %69, label %14, label %.preheader, !llvm.loop !5

.lr.ph112:                                        ; preds = %.preheader, %.lr.ph112
  %.1111 = phi ptr [ %93, %.lr.ph112 ], [ %.0.lcssa, %.preheader ]
  %.189110 = phi ptr [ %94, %.lr.ph112 ], [ %.088.lcssa, %.preheader ]
  %.191109 = phi ptr [ %95, %.lr.ph112 ], [ %.090.lcssa, %.preheader ]
  %.193108 = phi ptr [ %96, %.lr.ph112 ], [ %.092.lcssa, %.preheader ]
  %.195107 = phi i32 [ %97, %.lr.ph112 ], [ %.094.lcssa, %.preheader ]
  %70 = load i8, ptr %.189110, align 1, !tbaa !7
  %71 = zext i8 %70 to i32
  %72 = shl nuw nsw i32 %71, 12
  %73 = or disjoint i32 %72, 2048
  %74 = load i8, ptr %.193108, align 1, !tbaa !7
  %75 = zext i8 %74 to i32
  %76 = add nsw i32 %75, -128
  %77 = load i8, ptr %.191109, align 1, !tbaa !7
  %78 = zext i8 %77 to i32
  %79 = add nsw i32 %78, -128
  %80 = mul nsw i32 %76, 5743
  %81 = add nsw i32 %80, %73
  %.neg = mul nsw i32 %76, -2925
  %82 = add nsw i32 %.neg, %73
  %.neg96 = mul nsw i32 %79, -1410
  %83 = add nsw i32 %82, %.neg96
  %84 = mul nsw i32 %79, 7258
  %85 = add nsw i32 %84, %73
  %86 = ashr i32 %81, 12
  %87 = tail call noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef %86)
  %88 = ashr i32 %83, 12
  %89 = tail call noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef %88)
  %90 = ashr i32 %85, 12
  %91 = tail call noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef %90)
  %92 = tail call noundef i32 @_ZL14dejepeg_pack32IhEjT_S0_S0_S0_(i8 noundef zeroext -1, i8 noundef zeroext %87, i8 noundef zeroext %89, i8 noundef zeroext %91)
  store i32 %92, ptr %.1111, align 4, !tbaa !10
  %93 = getelementptr inbounds i8, ptr %.1111, i64 4
  %94 = getelementptr inbounds i8, ptr %.189110, i64 1
  %95 = getelementptr inbounds i8, ptr %.191109, i64 1
  %96 = getelementptr inbounds i8, ptr %.193108, i64 1
  %97 = add nsw i32 %.195107, -1
  %.not = icmp eq i32 %97, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph112, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph112, %.preheader
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL15_mm_loadl_epi64PKDv2_x(ptr noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL14_mm_slli_epi32Dv2_xi(<2 x i64> noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL16_mm_storeu_si128PDv2_xS_(ptr noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL14dejepeg_pack32IhEjT_S0_S0_S0_(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZL11clampToByteIiEhT_(i32 noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !6}


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