; LLVM IR from JamisHoo/Cryptographic-Algorithms :: src/des_cbc.ll (Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh)

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

@__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP = external hidden unnamed_addr constant [64 x i64], align 16
@__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP_i = external hidden unnamed_addr constant [64 x i64], 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z6setbitPvmb(ptr noundef, i64 noundef, i1 noundef zeroext) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6getbitPKvm(ptr noundef, i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh(ptr noundef %0, ptr noundef nonnull align 1 dereferenceable(96) %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [64 x i64], align 16
  %8 = alloca [8 x i8], align 1
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca [64 x i64], align 16
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 512, ptr %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP, i64 512, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %19

19:                                               ; preds = %32, %3
  %20 = load i64, ptr %9, align 8, !tbaa !9
  %21 = icmp ult i64 %20, 64
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %35

23:                                               ; preds = %19
  %24 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
  %25 = load i64, ptr %9, align 8, !tbaa !9
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = getelementptr inbounds [64 x i64], ptr %7, i64 0, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = sub i64 %29, 1
  %31 = call noundef zeroext i1 @_Z6getbitPKvm(ptr noundef %26, i64 noundef %30)
  call void @_Z6setbitPvmb(ptr noundef %24, i64 noundef %25, i1 noundef zeroext %31)
  br label %32

32:                                               ; preds = %23
  %33 = load i64, ptr %9, align 8, !tbaa !9
  %34 = add i64 %33, 1
  store i64 %34, ptr %9, align 8, !tbaa !9
  br label %19, !llvm.loop !11

35:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %36 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
  %37 = load i8, ptr %36, align 1, !tbaa !13
  %38 = zext i8 %37 to i32
  %39 = shl i32 %38, 0
  %40 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 1
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = zext i8 %41 to i32
  %43 = shl i32 %42, 8
  %44 = or i32 %39, %43
  %45 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 2
  %46 = load i8, ptr %45, align 1, !tbaa !13
  %47 = zext i8 %46 to i32
  %48 = shl i32 %47, 16
  %49 = or i32 %44, %48
  %50 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 3
  %51 = load i8, ptr %50, align 1, !tbaa !13
  %52 = zext i8 %51 to i32
  %53 = shl i32 %52, 24
  %54 = or i32 %49, %53
  store i32 %54, ptr %12, align 4, !tbaa !14
  %55 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 4
  %56 = load i8, ptr %55, align 1, !tbaa !13
  %57 = zext i8 %56 to i32
  %58 = shl i32 %57, 0
  %59 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 5
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = zext i8 %60 to i32
  %62 = shl i32 %61, 8
  %63 = or i32 %58, %62
  %64 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 6
  %65 = load i8, ptr %64, align 1, !tbaa !13
  %66 = zext i8 %65 to i32
  %67 = shl i32 %66, 16
  %68 = or i32 %63, %67
  %69 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 7
  %70 = load i8, ptr %69, align 1, !tbaa !13
  %71 = zext i8 %70 to i32
  %72 = shl i32 %71, 24
  %73 = or i32 %68, %72
  store i32 %73, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %89, %35
  %75 = load i64, ptr %14, align 8, !tbaa !9
  %76 = icmp ult i64 %75, 16
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %92

78:                                               ; preds = %74
  %79 = load i32, ptr %13, align 4, !tbaa !14
  store i32 %79, ptr %10, align 4, !tbaa !14
  %80 = load i32, ptr %12, align 4, !tbaa !14
  %81 = load i32, ptr %13, align 4, !tbaa !14
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load i64, ptr %14, align 8, !tbaa !9
  %84 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %82, i64 noundef %83) #5
  %85 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %81, ptr noundef nonnull align 1 dereferenceable(6) %84)
  %86 = xor i32 %80, %85
  store i32 %86, ptr %11, align 4, !tbaa !14
  %87 = load i32, ptr %10, align 4, !tbaa !14
  store i32 %87, ptr %12, align 4, !tbaa !14
  %88 = load i32, ptr %11, align 4, !tbaa !14
  store i32 %88, ptr %13, align 4, !tbaa !14
  br label %89

89:                                               ; preds = %78
  %90 = load i64, ptr %14, align 8, !tbaa !9
  %91 = add i64 %90, 1
  store i64 %91, ptr %14, align 8, !tbaa !9
  br label %74, !llvm.loop !16

92:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 512, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP_i, i64 512, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %93 = load i32, ptr %10, align 4, !tbaa !14
  %94 = zext i32 %93 to i64
  %95 = shl i64 %94, 32
  %96 = load i32, ptr %11, align 4, !tbaa !14
  %97 = zext i32 %96 to i64
  %98 = or i64 %95, %97
  store i64 %98, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %110, %92
  %100 = load i64, ptr %18, align 8, !tbaa !9
  %101 = icmp ult i64 %100, 64
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %113

103:                                              ; preds = %99
  %104 = load i64, ptr %18, align 8, !tbaa !9
  %105 = load i64, ptr %18, align 8, !tbaa !9
  %106 = getelementptr inbounds [64 x i64], ptr %15, i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = sub i64 %107, 1
  %109 = call noundef zeroext i1 @_Z6getbitPKvm(ptr noundef %16, i64 noundef %108)
  call void @_Z6setbitPvmb(ptr noundef %17, i64 noundef %104, i1 noundef zeroext %109)
  br label %110

110:                                              ; preds = %103
  %111 = load i64, ptr %18, align 8, !tbaa !9
  %112 = add i64 %111, 1
  store i64 %112, ptr %18, align 8, !tbaa !9
  br label %99, !llvm.loop !17

113:                                              ; preds = %102
  %114 = load i64, ptr %17, align 8, !tbaa !9
  %115 = lshr i64 %114, 0
  %116 = trunc i64 %115 to i8
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 0
  store i8 %116, ptr %118, align 1, !tbaa !13
  %119 = load i64, ptr %17, align 8, !tbaa !9
  %120 = lshr i64 %119, 8
  %121 = trunc i64 %120 to i8
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 1
  store i8 %121, ptr %123, align 1, !tbaa !13
  %124 = load i64, ptr %17, align 8, !tbaa !9
  %125 = lshr i64 %124, 16
  %126 = trunc i64 %125 to i8
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 2
  store i8 %126, ptr %128, align 1, !tbaa !13
  %129 = load i64, ptr %17, align 8, !tbaa !9
  %130 = lshr i64 %129, 24
  %131 = trunc i64 %130 to i8
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 3
  store i8 %131, ptr %133, align 1, !tbaa !13
  %134 = load i64, ptr %17, align 8, !tbaa !9
  %135 = lshr i64 %134, 32
  %136 = trunc i64 %135 to i8
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 4
  store i8 %136, ptr %138, align 1, !tbaa !13
  %139 = load i64, ptr %17, align 8, !tbaa !9
  %140 = lshr i64 %139, 40
  %141 = trunc i64 %140 to i8
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i64 5
  store i8 %141, ptr %143, align 1, !tbaa !13
  %144 = load i64, ptr %17, align 8, !tbaa !9
  %145 = lshr i64 %144, 48
  %146 = trunc i64 %145 to i8
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %147, i64 6
  store i8 %146, ptr %148, align 1, !tbaa !13
  %149 = load i64, ptr %17, align 8, !tbaa !9
  %150 = lshr i64 %149, 56
  %151 = trunc i64 %150 to i8
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i64 7
  store i8 %151, ptr %153, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %7) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef, ptr noundef nonnull align 1 dereferenceable(6)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96), i64 noundef) #4 align 2

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


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

@__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP = external hidden unnamed_addr constant [64 x i64], align 16
@__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP_i = external hidden unnamed_addr constant [64 x i64], align 16

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z6setbitPvmb(ptr noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6getbitPKvm(ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh(ptr noundef %0, ptr noundef nonnull align 1 dereferenceable(96) %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = alloca [8 x i8], align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  br label %63

7:                                                ; preds = %63
  %8 = load i32, ptr %4, align 4
  %9 = getelementptr inbounds i8, ptr %4, i64 4
  %10 = load i32, ptr %9, align 4
  %11 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 0) #3
  %12 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %10, ptr noundef nonnull align 1 dereferenceable(6) %11)
  %13 = xor i32 %12, %8
  %14 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 1) #3
  %15 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %13, ptr noundef nonnull align 1 dereferenceable(6) %14)
  %16 = xor i32 %15, %10
  %17 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 2) #3
  %18 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %16, ptr noundef nonnull align 1 dereferenceable(6) %17)
  %19 = xor i32 %18, %13
  %20 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 3) #3
  %21 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(6) %20)
  %22 = xor i32 %21, %16
  %23 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 4) #3
  %24 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %22, ptr noundef nonnull align 1 dereferenceable(6) %23)
  %25 = xor i32 %24, %19
  %26 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 5) #3
  %27 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %25, ptr noundef nonnull align 1 dereferenceable(6) %26)
  %28 = xor i32 %27, %22
  %29 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 6) #3
  %30 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %28, ptr noundef nonnull align 1 dereferenceable(6) %29)
  %31 = xor i32 %30, %25
  %32 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 7) #3
  %33 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %31, ptr noundef nonnull align 1 dereferenceable(6) %32)
  %34 = xor i32 %33, %28
  %35 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 8) #3
  %36 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %34, ptr noundef nonnull align 1 dereferenceable(6) %35)
  %37 = xor i32 %36, %31
  %38 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 9) #3
  %39 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %37, ptr noundef nonnull align 1 dereferenceable(6) %38)
  %40 = xor i32 %39, %34
  %41 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 10) #3
  %42 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %40, ptr noundef nonnull align 1 dereferenceable(6) %41)
  %43 = xor i32 %42, %37
  %44 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 11) #3
  %45 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %43, ptr noundef nonnull align 1 dereferenceable(6) %44)
  %46 = xor i32 %45, %40
  %47 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 12) #3
  %48 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %46, ptr noundef nonnull align 1 dereferenceable(6) %47)
  %49 = xor i32 %48, %43
  %50 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 13) #3
  %51 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %49, ptr noundef nonnull align 1 dereferenceable(6) %50)
  %52 = xor i32 %51, %46
  %53 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 14) #3
  %54 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %52, ptr noundef nonnull align 1 dereferenceable(6) %53)
  %55 = xor i32 %54, %49
  %56 = call noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96) %1, i64 noundef 15) #3
  %57 = call noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef %55, ptr noundef nonnull align 1 dereferenceable(6) %56)
  %58 = xor i32 %57, %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %59 = zext i32 %55 to i64
  %60 = shl nuw i64 %59, 32
  %61 = zext i32 %58 to i64
  %62 = or disjoint i64 %60, %61
  store i64 %62, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  br label %93

63:                                               ; preds = %3, %63
  %.03233 = phi i64 [ 0, %3 ], [ %68, %63 ]
  %64 = getelementptr inbounds [64 x i64], ptr @__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP, i64 0, i64 %.03233
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = add i64 %65, -1
  %67 = call noundef zeroext i1 @_Z6getbitPKvm(ptr noundef %0, i64 noundef %66)
  call void @_Z6setbitPvmb(ptr noundef nonnull %4, i64 noundef %.03233, i1 noundef zeroext %67)
  %68 = add nuw nsw i64 %.03233, 1
  %exitcond.not = icmp eq i64 %68, 64
  br i1 %exitcond.not, label %7, label %63, !llvm.loop !9

69:                                               ; preds = %93
  %70 = load i64, ptr %6, align 8, !tbaa !5
  %71 = trunc i64 %70 to i8
  store i8 %71, ptr %2, align 1, !tbaa !11
  %72 = lshr i64 %70, 8
  %73 = trunc i64 %72 to i8
  %74 = getelementptr inbounds i8, ptr %2, i64 1
  store i8 %73, ptr %74, align 1, !tbaa !11
  %75 = lshr i64 %70, 16
  %76 = trunc i64 %75 to i8
  %77 = getelementptr inbounds i8, ptr %2, i64 2
  store i8 %76, ptr %77, align 1, !tbaa !11
  %78 = lshr i64 %70, 24
  %79 = trunc i64 %78 to i8
  %80 = getelementptr inbounds i8, ptr %2, i64 3
  store i8 %79, ptr %80, align 1, !tbaa !11
  %81 = lshr i64 %70, 32
  %82 = trunc i64 %81 to i8
  %83 = getelementptr inbounds i8, ptr %2, i64 4
  store i8 %82, ptr %83, align 1, !tbaa !11
  %84 = lshr i64 %70, 40
  %85 = trunc i64 %84 to i8
  %86 = getelementptr inbounds i8, ptr %2, i64 5
  store i8 %85, ptr %86, align 1, !tbaa !11
  %87 = lshr i64 %70, 48
  %88 = trunc i64 %87 to i8
  %89 = getelementptr inbounds i8, ptr %2, i64 6
  store i8 %88, ptr %89, align 1, !tbaa !11
  %90 = lshr i64 %70, 56
  %91 = trunc nuw i64 %90 to i8
  %92 = getelementptr inbounds i8, ptr %2, i64 7
  store i8 %91, ptr %92, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret void

93:                                               ; preds = %7, %93
  %.037 = phi i64 [ 0, %7 ], [ %98, %93 ]
  %94 = getelementptr inbounds [64 x i64], ptr @__const._Z17des_cbc_iterationPKhRKSt5arrayIS1_IhLm6EELm16EEPh.IP_i, i64 0, i64 %.037
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = add i64 %95, -1
  %97 = call noundef zeroext i1 @_Z6getbitPKvm(ptr noundef nonnull %5, i64 noundef %96)
  call void @_Z6setbitPvmb(ptr noundef nonnull %6, i64 noundef %.037, i1 noundef zeroext %97)
  %98 = add nuw nsw i64 %.037, 1
  %exitcond39.not = icmp eq i64 %98, 64
  br i1 %exitcond39.not, label %69, label %93, !llvm.loop !12
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10f_functionjRKSt5arrayIhLm6EE(i32 noundef, ptr noundef nonnull align 1 dereferenceable(6)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(6) ptr @_ZNKSt5arrayIS_IhLm6EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(96), i64 noundef) local_unnamed_addr #2 align 2

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

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass