; LLVM IR from intel/cryptography-primitives :: sources/ippcp (pcptdesdecryptcbcca)

; 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._cpDES = type { i32, [16 x i64], [16 x i64] }

@DESspbox = external constant [256 x i32], align 64

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsTDESDecryptCBC(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca [3 x ptr], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store i32 %7, ptr %17, align 4, !tbaa !9
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = icmp eq ptr null, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %8
  store i32 -8, ptr %9, align 4
  br label %160

27:                                               ; preds = %8
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  %29 = icmp eq ptr null, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  store i32 -8, ptr %9, align 4
  br label %160

31:                                               ; preds = %27
  %32 = load ptr, ptr %15, align 8, !tbaa !5
  %33 = icmp eq ptr null, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  store i32 -8, ptr %9, align 4
  br label %160

35:                                               ; preds = %31
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._cpDES, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = call i64 @IPP_UINT_PTR(ptr noundef %39)
  %41 = trunc i64 %40 to i32
  %42 = xor i32 %38, %41
  %43 = icmp eq i32 %42, 541345107
  br i1 %43, label %45, label %44

44:                                               ; preds = %35
  store i32 -13, ptr %9, align 4
  br label %160

45:                                               ; preds = %35
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._cpDES, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = call i64 @IPP_UINT_PTR(ptr noundef %49)
  %51 = trunc i64 %50 to i32
  %52 = xor i32 %48, %51
  %53 = icmp eq i32 %52, 541345107
  br i1 %53, label %55, label %54

54:                                               ; preds = %45
  store i32 -13, ptr %9, align 4
  br label %160

55:                                               ; preds = %45
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._cpDES, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = call i64 @IPP_UINT_PTR(ptr noundef %59)
  %61 = trunc i64 %60 to i32
  %62 = xor i32 %58, %61
  %63 = icmp eq i32 %62, 541345107
  br i1 %63, label %65, label %64

64:                                               ; preds = %55
  store i32 -13, ptr %9, align 4
  br label %160

65:                                               ; preds = %55
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = icmp eq ptr null, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  store i32 -8, ptr %9, align 4
  br label %160

69:                                               ; preds = %65
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = icmp eq ptr null, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  store i32 -8, ptr %9, align 4
  br label %160

73:                                               ; preds = %69
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = icmp eq ptr null, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %73
  store i32 -8, ptr %9, align 4
  br label %160

77:                                               ; preds = %73
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = icmp slt i32 %78, 1
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  store i32 -15, ptr %9, align 4
  br label %160

81:                                               ; preds = %77
  %82 = load i32, ptr %17, align 4, !tbaa !9
  %83 = icmp ne i32 0, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %84, %81
  %86 = load i32, ptr %12, align 4, !tbaa !9
  %87 = and i32 %86, 7
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  store i32 -1005, ptr %9, align 4
  br label %160

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = sdiv i32 %91, 8
  store i32 %92, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  call void @CopyBlock8(ptr noundef %93, ptr noundef %19)
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = call i64 @IPP_UINT_PTR(ptr noundef %94)
  %96 = and i64 %95, 7
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %107, label %98

98:                                               ; preds = %90
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = call i64 @IPP_UINT_PTR(ptr noundef %99)
  %101 = and i64 %100, 7
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %107, label %103

103:                                              ; preds = %98
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = icmp eq ptr %104, %105
  br i1 %106, label %107, label %141

107:                                              ; preds = %103, %98, %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %137, %107
  %109 = load i32, ptr %20, align 4, !tbaa !9
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %112, label %140

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  call void @CopyBlock8(ptr noundef %113, ptr noundef %21)
  %114 = load i64, ptr %21, align 8, !tbaa !13
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._cpDES, ptr %115, i32 0, i32 2
  %117 = getelementptr inbounds [16 x i64], ptr %116, i64 0, i64 0
  %118 = call i64 @Cipher_DES(i64 noundef %114, ptr noundef %117, ptr noundef @DESspbox)
  store i64 %118, ptr %22, align 8, !tbaa !13
  %119 = load i64, ptr %22, align 8, !tbaa !13
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._cpDES, ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds [16 x i64], ptr %121, i64 0, i64 0
  %123 = call i64 @Cipher_DES(i64 noundef %119, ptr noundef %122, ptr noundef @DESspbox)
  store i64 %123, ptr %22, align 8, !tbaa !13
  %124 = load i64, ptr %19, align 8, !tbaa !13
  %125 = load i64, ptr %22, align 8, !tbaa !13
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._cpDES, ptr %126, i32 0, i32 2
  %128 = getelementptr inbounds [16 x i64], ptr %127, i64 0, i64 0
  %129 = call i64 @Cipher_DES(i64 noundef %125, ptr noundef %128, ptr noundef @DESspbox)
  %130 = xor i64 %124, %129
  store i64 %130, ptr %22, align 8, !tbaa !13
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  call void @CopyBlock8(ptr noundef %22, ptr noundef %131)
  %132 = load i64, ptr %21, align 8, !tbaa !13
  store i64 %132, ptr %19, align 8, !tbaa !13
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  store ptr %134, ptr %10, align 8, !tbaa !5
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 8
  store ptr %136, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %137

137:                                              ; preds = %112
  %138 = load i32, ptr %20, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %20, align 4, !tbaa !9
  br label %108, !llvm.loop !15

140:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %159

141:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #4
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._cpDES, ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds [16 x i64], ptr %143, i64 0, i64 0
  %145 = getelementptr inbounds [3 x ptr], ptr %23, i64 0, i64 0
  store ptr %144, ptr %145, align 16, !tbaa !5
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct._cpDES, ptr %146, i32 0, i32 1
  %148 = getelementptr inbounds [16 x i64], ptr %147, i64 0, i64 0
  %149 = getelementptr inbounds [3 x ptr], ptr %23, i64 0, i64 1
  store ptr %148, ptr %149, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._cpDES, ptr %150, i32 0, i32 2
  %152 = getelementptr inbounds [16 x i64], ptr %151, i64 0, i64 0
  %153 = getelementptr inbounds [3 x ptr], ptr %23, i64 0, i64 2
  store ptr %152, ptr %153, align 16, !tbaa !5
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load i32, ptr %18, align 4, !tbaa !9
  %157 = getelementptr inbounds [3 x ptr], ptr %23, i64 0, i64 0
  %158 = load i64, ptr %19, align 8, !tbaa !13
  call void @DecryptCBC_TDES(ptr noundef %154, ptr noundef %155, i32 noundef %156, ptr noundef %157, i64 noundef %158, ptr noundef @DESspbox)
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #4
  br label %159

159:                                              ; preds = %141, %140
  store i32 0, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %160

160:                                              ; preds = %159, %89, %80, %76, %72, %68, %64, %54, %44, %34, %30, %26
  %161 = load i32, ptr %9, align 4
  ret i32 %161
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(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: inlinehint nounwind uwtable
declare hidden void @CopyBlock8(ptr noundef, ptr noundef) #1

declare i64 @Cipher_DES(i64 noundef, ptr noundef, ptr noundef) #3

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

declare void @DecryptCBC_TDES(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_cpDES", !10, i64 0, !7, i64 8, !7, i64 136}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

@DESspbox = external constant [256 x i32], align 64

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1005, 1) i32 @ippsTDESDecryptCBC(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) local_unnamed_addr #0 {
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca [3 x ptr], align 16
  %13 = icmp eq ptr %3, null
  %14 = icmp eq ptr %4, null
  %or.cond49 = or i1 %13, %14
  %15 = icmp eq ptr %5, null
  %or.cond50 = or i1 %or.cond49, %15
  br i1 %or.cond50, label %72, label %16

16:                                               ; preds = %8
  %17 = load i32, ptr %3, align 8, !tbaa !5
  %18 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %19 = trunc i64 %18 to i32
  %20 = xor i32 %17, %19
  %21 = icmp eq i32 %20, 541345107
  br i1 %21, label %22, label %72

22:                                               ; preds = %16
  %23 = load i32, ptr %4, align 8, !tbaa !5
  %24 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %4)
  %25 = trunc i64 %24 to i32
  %26 = xor i32 %23, %25
  %27 = icmp eq i32 %26, 541345107
  br i1 %27, label %28, label %72

28:                                               ; preds = %22
  %29 = load i32, ptr %5, align 8, !tbaa !5
  %30 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %5)
  %31 = trunc i64 %30 to i32
  %32 = xor i32 %29, %31
  %33 = icmp eq i32 %32, 541345107
  br i1 %33, label %34, label %72

34:                                               ; preds = %28
  %35 = icmp eq ptr %0, null
  %36 = icmp eq ptr %1, null
  %or.cond51 = or i1 %35, %36
  %37 = icmp eq ptr %6, null
  %or.cond52 = or i1 %or.cond51, %37
  br i1 %or.cond52, label %72, label %38

38:                                               ; preds = %34
  %39 = icmp slt i32 %2, 1
  br i1 %39, label %72, label %40

40:                                               ; preds = %38
  %41 = and i32 %2, 7
  %.not = icmp eq i32 %41, 0
  br i1 %.not, label %42, label %72

42:                                               ; preds = %40
  %43 = lshr exact i32 %2, 3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @CopyBlock8(ptr noundef nonnull %6, ptr noundef nonnull %9)
  %44 = call i64 @IPP_UINT_PTR(ptr noundef nonnull %0)
  %45 = and i64 %44, 7
  %.not47 = icmp eq i64 %45, 0
  br i1 %.not47, label %46, label %50

46:                                               ; preds = %42
  %47 = call i64 @IPP_UINT_PTR(ptr noundef nonnull %1)
  %48 = and i64 %47, 7
  %.not48 = icmp ne i64 %48, 0
  %49 = icmp eq ptr %0, %1
  %or.cond = or i1 %49, %.not48
  br i1 %or.cond, label %50, label %65

50:                                               ; preds = %46, %42
  %51 = getelementptr inbounds i8, ptr %5, i64 136
  %52 = getelementptr inbounds i8, ptr %4, i64 8
  %53 = getelementptr inbounds i8, ptr %3, i64 136
  %umax = call i32 @llvm.umax.i32(i32 %43, i32 1)
  br label %54

54:                                               ; preds = %50, %54
  %.055 = phi i32 [ 0, %50 ], [ %64, %54 ]
  %.03854 = phi ptr [ %0, %50 ], [ %62, %54 ]
  %.03953 = phi ptr [ %1, %50 ], [ %63, %54 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @CopyBlock8(ptr noundef nonnull %.03854, ptr noundef nonnull %10)
  %55 = load i64, ptr %10, align 8, !tbaa !10
  %56 = call i64 @Cipher_DES(i64 noundef %55, ptr noundef nonnull %51, ptr noundef nonnull @DESspbox) #5
  store i64 %56, ptr %11, align 8, !tbaa !10
  %57 = call i64 @Cipher_DES(i64 noundef %56, ptr noundef nonnull %52, ptr noundef nonnull @DESspbox) #5
  store i64 %57, ptr %11, align 8, !tbaa !10
  %58 = load i64, ptr %9, align 8, !tbaa !10
  %59 = call i64 @Cipher_DES(i64 noundef %57, ptr noundef nonnull %53, ptr noundef nonnull @DESspbox) #5
  %60 = xor i64 %59, %58
  store i64 %60, ptr %11, align 8, !tbaa !10
  call void @CopyBlock8(ptr noundef nonnull %11, ptr noundef nonnull %.03953)
  %61 = load i64, ptr %10, align 8, !tbaa !10
  store i64 %61, ptr %9, align 8, !tbaa !10
  %62 = getelementptr inbounds i8, ptr %.03854, i64 8
  %63 = getelementptr inbounds i8, ptr %.03953, i64 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %64 = add nuw nsw i32 %.055, 1
  %exitcond.not = icmp eq i32 %64, %umax
  br i1 %exitcond.not, label %.loopexit, label %54, !llvm.loop !12

65:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  %66 = getelementptr inbounds i8, ptr %5, i64 136
  store ptr %66, ptr %12, align 16, !tbaa !14
  %67 = getelementptr inbounds i8, ptr %4, i64 8
  %68 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %67, ptr %68, align 8, !tbaa !14
  %69 = getelementptr inbounds i8, ptr %3, i64 136
  %70 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %69, ptr %70, align 16, !tbaa !14
  %71 = load i64, ptr %9, align 8, !tbaa !10
  call void @DecryptCBC_TDES(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %43, ptr noundef nonnull %12, i64 noundef %71, ptr noundef nonnull @DESspbox) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  br label %.loopexit

.loopexit:                                        ; preds = %54, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %72

72:                                               ; preds = %40, %38, %34, %28, %22, %16, %8, %.loopexit
  %.037 = phi i32 [ 0, %.loopexit ], [ -8, %8 ], [ -13, %16 ], [ -13, %22 ], [ -13, %28 ], [ -8, %34 ], [ -15, %38 ], [ -1005, %40 ]
  ret i32 %.037
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(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: inlinehint nounwind uwtable
declare hidden void @CopyBlock8(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @Cipher_DES(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @DecryptCBC_TDES(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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


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