; LLVM IR from kojiba/purge :: purge (purgeDecrypt)

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

@purgeReverseSubstitutionBlock = external hidden constant [256 x i8], align 16

; Function Attrs: nounwind uwtable
declare dso_local i64 @substitute(i64 noundef, ptr noundef) #0

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; 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) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

; Function Attrs: nounwind uwtable
declare dso_local void @reverseRotateBytes(ptr noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare dso_local void @roundKeyForStep(ptr noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
define dso_local void @purgeDecrypt(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %8 = call ptr @llvm.stacksave.p0()
  store ptr %8, ptr %7, align 8
  %9 = alloca [8 x i64], i64 31, align 16
  store i8 0, ptr %6, align 1, !tbaa !9
  br label %10

10:                                               ; preds = %25, %2
  %11 = load i8, ptr %6, align 1, !tbaa !9
  %12 = zext i8 %11 to i32
  %13 = icmp slt i32 %12, 31
  br i1 %13, label %14, label %28

14:                                               ; preds = %10
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load i8, ptr %6, align 1, !tbaa !9
  %17 = zext i8 %16 to i32
  %18 = add nsw i32 %17, 1
  %19 = trunc i32 %18 to i8
  call void @roundKeyForStep(ptr noundef %15, i8 noundef zeroext %19)
  %20 = load i8, ptr %6, align 1, !tbaa !9
  %21 = zext i8 %20 to i64
  %22 = getelementptr inbounds [8 x i64], ptr %9, i64 %21
  %23 = getelementptr inbounds [8 x i64], ptr %22, i64 0, i64 0
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 8 %24, i64 64, i1 false)
  br label %25

25:                                               ; preds = %14
  %26 = load i8, ptr %6, align 1, !tbaa !9
  %27 = add i8 %26, 1
  store i8 %27, ptr %6, align 1, !tbaa !9
  br label %10, !llvm.loop !10

28:                                               ; preds = %10
  store i8 30, ptr %6, align 1, !tbaa !9
  br label %29

29:                                               ; preds = %209, %28
  %30 = load i8, ptr %6, align 1, !tbaa !9
  %31 = zext i8 %30 to i32
  %32 = icmp ne i32 %31, 255
  br i1 %32, label %33, label %212

33:                                               ; preds = %29
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = load i8, ptr %6, align 1, !tbaa !9
  %36 = zext i8 %35 to i32
  %37 = srem i32 %36, 32
  %38 = add nsw i32 %37, 1
  %39 = trunc i32 %38 to i8
  call void @reverseRotateBytes(ptr noundef %34, i8 noundef zeroext %39)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds i64, ptr %40, i64 1
  %42 = load i64, ptr %41, align 8, !tbaa !12
  %43 = call i64 @substitute(i64 noundef %42, ptr noundef @purgeReverseSubstitutionBlock)
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds i64, ptr %44, i64 1
  store i64 %43, ptr %45, align 8, !tbaa !12
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds i64, ptr %46, i64 3
  %48 = load i64, ptr %47, align 8, !tbaa !12
  %49 = call i64 @substitute(i64 noundef %48, ptr noundef @purgeReverseSubstitutionBlock)
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds i64, ptr %50, i64 3
  store i64 %49, ptr %51, align 8, !tbaa !12
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds i64, ptr %52, i64 4
  %54 = load i64, ptr %53, align 8, !tbaa !12
  %55 = call i64 @substitute(i64 noundef %54, ptr noundef @purgeReverseSubstitutionBlock)
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds i64, ptr %56, i64 4
  store i64 %55, ptr %57, align 8, !tbaa !12
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds i64, ptr %58, i64 6
  %60 = load i64, ptr %59, align 8, !tbaa !12
  %61 = call i64 @substitute(i64 noundef %60, ptr noundef @purgeReverseSubstitutionBlock)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds i64, ptr %62, i64 6
  store i64 %61, ptr %63, align 8, !tbaa !12
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds i64, ptr %64, i64 0
  %66 = load i64, ptr %65, align 8, !tbaa !12
  store i64 %66, ptr %5, align 8, !tbaa !12
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds i64, ptr %67, i64 5
  %69 = load i64, ptr %68, align 8, !tbaa !12
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds i64, ptr %70, i64 0
  store i64 %69, ptr %71, align 8, !tbaa !12
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds i64, ptr %72, i64 2
  %74 = load i64, ptr %73, align 8, !tbaa !12
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds i64, ptr %75, i64 5
  store i64 %74, ptr %76, align 8, !tbaa !12
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds i64, ptr %77, i64 7
  %79 = load i64, ptr %78, align 8, !tbaa !12
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds i64, ptr %80, i64 2
  store i64 %79, ptr %81, align 8, !tbaa !12
  %82 = load i64, ptr %5, align 8, !tbaa !12
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds i64, ptr %83, i64 7
  store i64 %82, ptr %84, align 8, !tbaa !12
  store i64 0, ptr %5, align 8, !tbaa !12
  %85 = load i8, ptr %6, align 1, !tbaa !9
  %86 = zext i8 %85 to i64
  %87 = getelementptr inbounds [8 x i64], ptr %9, i64 %86
  %88 = getelementptr inbounds [8 x i64], ptr %87, i64 0, i64 0
  %89 = load i64, ptr %88, align 16, !tbaa !12
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds i64, ptr %90, i64 0
  %92 = load i64, ptr %91, align 8, !tbaa !12
  %93 = xor i64 %92, %89
  store i64 %93, ptr %91, align 8, !tbaa !12
  %94 = load i8, ptr %6, align 1, !tbaa !9
  %95 = zext i8 %94 to i64
  %96 = getelementptr inbounds [8 x i64], ptr %9, i64 %95
  %97 = getelementptr inbounds [8 x i64], ptr %96, i64 0, i64 1
  %98 = load i64, ptr %97, align 8, !tbaa !12
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds i64, ptr %99, i64 1
  %101 = load i64, ptr %100, align 8, !tbaa !12
  %102 = xor i64 %101, %98
  store i64 %102, ptr %100, align 8, !tbaa !12
  %103 = load i8, ptr %6, align 1, !tbaa !9
  %104 = zext i8 %103 to i64
  %105 = getelementptr inbounds [8 x i64], ptr %9, i64 %104
  %106 = getelementptr inbounds [8 x i64], ptr %105, i64 0, i64 2
  %107 = load i64, ptr %106, align 16, !tbaa !12
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds i64, ptr %108, i64 2
  %110 = load i64, ptr %109, align 8, !tbaa !12
  %111 = xor i64 %110, %107
  store i64 %111, ptr %109, align 8, !tbaa !12
  %112 = load i8, ptr %6, align 1, !tbaa !9
  %113 = zext i8 %112 to i64
  %114 = getelementptr inbounds [8 x i64], ptr %9, i64 %113
  %115 = getelementptr inbounds [8 x i64], ptr %114, i64 0, i64 3
  %116 = load i64, ptr %115, align 8, !tbaa !12
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds i64, ptr %117, i64 3
  %119 = load i64, ptr %118, align 8, !tbaa !12
  %120 = xor i64 %119, %116
  store i64 %120, ptr %118, align 8, !tbaa !12
  %121 = load i8, ptr %6, align 1, !tbaa !9
  %122 = zext i8 %121 to i64
  %123 = getelementptr inbounds [8 x i64], ptr %9, i64 %122
  %124 = getelementptr inbounds [8 x i64], ptr %123, i64 0, i64 4
  %125 = load i64, ptr %124, align 16, !tbaa !12
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds i64, ptr %126, i64 4
  %128 = load i64, ptr %127, align 8, !tbaa !12
  %129 = xor i64 %128, %125
  store i64 %129, ptr %127, align 8, !tbaa !12
  %130 = load i8, ptr %6, align 1, !tbaa !9
  %131 = zext i8 %130 to i64
  %132 = getelementptr inbounds [8 x i64], ptr %9, i64 %131
  %133 = getelementptr inbounds [8 x i64], ptr %132, i64 0, i64 5
  %134 = load i64, ptr %133, align 8, !tbaa !12
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds i64, ptr %135, i64 5
  %137 = load i64, ptr %136, align 8, !tbaa !12
  %138 = xor i64 %137, %134
  store i64 %138, ptr %136, align 8, !tbaa !12
  %139 = load i8, ptr %6, align 1, !tbaa !9
  %140 = zext i8 %139 to i64
  %141 = getelementptr inbounds [8 x i64], ptr %9, i64 %140
  %142 = getelementptr inbounds [8 x i64], ptr %141, i64 0, i64 6
  %143 = load i64, ptr %142, align 16, !tbaa !12
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds i64, ptr %144, i64 6
  %146 = load i64, ptr %145, align 8, !tbaa !12
  %147 = xor i64 %146, %143
  store i64 %147, ptr %145, align 8, !tbaa !12
  %148 = load i8, ptr %6, align 1, !tbaa !9
  %149 = zext i8 %148 to i64
  %150 = getelementptr inbounds [8 x i64], ptr %9, i64 %149
  %151 = getelementptr inbounds [8 x i64], ptr %150, i64 0, i64 7
  %152 = load i64, ptr %151, align 8, !tbaa !12
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds i64, ptr %153, i64 7
  %155 = load i64, ptr %154, align 8, !tbaa !12
  %156 = xor i64 %155, %152
  store i64 %156, ptr %154, align 8, !tbaa !12
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds i64, ptr %157, i64 7
  %159 = load i64, ptr %158, align 8, !tbaa !12
  %160 = sub i64 %159, 1229782938247303441
  store i64 %160, ptr %158, align 8, !tbaa !12
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds i64, ptr %161, i64 6
  %163 = load i64, ptr %162, align 8, !tbaa !12
  %164 = sub i64 %163, -8608480567731124088
  store i64 %164, ptr %162, align 8, !tbaa !12
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds i64, ptr %165, i64 0
  %167 = load i64, ptr %166, align 8, !tbaa !12
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds i64, ptr %168, i64 5
  %170 = load i64, ptr %169, align 8, !tbaa !12
  %171 = sub i64 %170, %167
  store i64 %171, ptr %169, align 8, !tbaa !12
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds i64, ptr %172, i64 3
  %174 = load i64, ptr %173, align 8, !tbaa !12
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds i64, ptr %175, i64 4
  %177 = load i64, ptr %176, align 8, !tbaa !12
  %178 = sub i64 %177, %174
  store i64 %178, ptr %176, align 8, !tbaa !12
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds i64, ptr %179, i64 3
  %181 = load i64, ptr %180, align 8, !tbaa !12
  %182 = lshr i64 %181, 13
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds i64, ptr %183, i64 3
  %185 = load i64, ptr %184, align 8, !tbaa !12
  %186 = shl i64 %185, 51
  %187 = or i64 %182, %186
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds i64, ptr %188, i64 3
  store i64 %187, ptr %189, align 8, !tbaa !12
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds i64, ptr %190, i64 2
  %192 = load i64, ptr %191, align 8, !tbaa !12
  %193 = xor i64 %192, 6148914692668172970
  store i64 %193, ptr %191, align 8, !tbaa !12
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds i64, ptr %194, i64 1
  %196 = load i64, ptr %195, align 8, !tbaa !12
  %197 = xor i64 %196, -6148914692668172971
  store i64 %197, ptr %195, align 8, !tbaa !12
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds i64, ptr %198, i64 0
  %200 = load i64, ptr %199, align 8, !tbaa !12
  %201 = lshr i64 %200, 7
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds i64, ptr %202, i64 0
  %204 = load i64, ptr %203, align 8, !tbaa !12
  %205 = shl i64 %204, 57
  %206 = or i64 %201, %205
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds i64, ptr %207, i64 0
  store i64 %206, ptr %208, align 8, !tbaa !12
  br label %209

209:                                              ; preds = %33
  %210 = load i8, ptr %6, align 1, !tbaa !9
  %211 = add i8 %210, -1
  store i8 %211, ptr %6, align 1, !tbaa !9
  br label %29, !llvm.loop !14

212:                                              ; preds = %29
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 1 %213, i8 0, i64 64, i1 false)
  %214 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %214)
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !11}


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

@purgeReverseSubstitutionBlock = external hidden constant [256 x i8], align 16

; Function Attrs: nounwind uwtable
declare dso_local i64 @substitute(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local void @reverseRotateBytes(ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @roundKeyForStep(ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @purgeDecrypt(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
.preheader:
  %2 = alloca [31 x [8 x i64]], align 16
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 2)
  %3 = getelementptr inbounds i8, ptr %2, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %3, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 3)
  %4 = getelementptr inbounds i8, ptr %2, i64 128
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 4)
  %5 = getelementptr inbounds i8, ptr %2, i64 192
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %5, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 5)
  %6 = getelementptr inbounds i8, ptr %2, i64 256
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 6)
  %7 = getelementptr inbounds i8, ptr %2, i64 320
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 7)
  %8 = getelementptr inbounds i8, ptr %2, i64 384
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %8, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 8)
  %9 = getelementptr inbounds i8, ptr %2, i64 448
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 9)
  %10 = getelementptr inbounds i8, ptr %2, i64 512
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %10, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 10)
  %11 = getelementptr inbounds i8, ptr %2, i64 576
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %11, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 11)
  %12 = getelementptr inbounds i8, ptr %2, i64 640
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %12, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 12)
  %13 = getelementptr inbounds i8, ptr %2, i64 704
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %13, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 13)
  %14 = getelementptr inbounds i8, ptr %2, i64 768
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 14)
  %15 = getelementptr inbounds i8, ptr %2, i64 832
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 15)
  %16 = getelementptr inbounds i8, ptr %2, i64 896
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %16, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 16)
  %17 = getelementptr inbounds i8, ptr %2, i64 960
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %17, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 17)
  %18 = getelementptr inbounds i8, ptr %2, i64 1024
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %18, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 18)
  %19 = getelementptr inbounds i8, ptr %2, i64 1088
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %19, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 19)
  %20 = getelementptr inbounds i8, ptr %2, i64 1152
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 20)
  %21 = getelementptr inbounds i8, ptr %2, i64 1216
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %21, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 21)
  %22 = getelementptr inbounds i8, ptr %2, i64 1280
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %22, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 22)
  %23 = getelementptr inbounds i8, ptr %2, i64 1344
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %23, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 23)
  %24 = getelementptr inbounds i8, ptr %2, i64 1408
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %24, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 24)
  %25 = getelementptr inbounds i8, ptr %2, i64 1472
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %25, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 25)
  %26 = getelementptr inbounds i8, ptr %2, i64 1536
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %26, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 26)
  %27 = getelementptr inbounds i8, ptr %2, i64 1600
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %27, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 27)
  %28 = getelementptr inbounds i8, ptr %2, i64 1664
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %28, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 28)
  %29 = getelementptr inbounds i8, ptr %2, i64 1728
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %29, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 29)
  %30 = getelementptr inbounds i8, ptr %2, i64 1792
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %30, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 30)
  %31 = getelementptr inbounds i8, ptr %2, i64 1856
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %31, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  tail call void @roundKeyForStep(ptr noundef %1, i8 noundef zeroext 31)
  %32 = getelementptr inbounds i8, ptr %2, i64 1920
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %32, ptr noundef nonnull align 8 dereferenceable(64) %1, i64 64, i1 false)
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  %36 = getelementptr inbounds i8, ptr %0, i64 48
  %37 = getelementptr inbounds i8, ptr %0, i64 40
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %39 = getelementptr inbounds i8, ptr %0, i64 56
  br label %40

40:                                               ; preds = %.preheader, %40
  %indvars.iv = phi i64 [ 30, %.preheader ], [ %indvars.iv.next, %40 ]
  %41 = trunc i64 %indvars.iv to i8
  %42 = add i8 %41, 1
  tail call void @reverseRotateBytes(ptr noundef %0, i8 noundef zeroext %42)
  %43 = load i64, ptr %33, align 8, !tbaa !5
  %44 = tail call i64 @substitute(i64 noundef %43, ptr noundef nonnull @purgeReverseSubstitutionBlock)
  store i64 %44, ptr %33, align 8, !tbaa !5
  %45 = load i64, ptr %34, align 8, !tbaa !5
  %46 = tail call i64 @substitute(i64 noundef %45, ptr noundef nonnull @purgeReverseSubstitutionBlock)
  store i64 %46, ptr %34, align 8, !tbaa !5
  %47 = load i64, ptr %35, align 8, !tbaa !5
  %48 = tail call i64 @substitute(i64 noundef %47, ptr noundef nonnull @purgeReverseSubstitutionBlock)
  store i64 %48, ptr %35, align 8, !tbaa !5
  %49 = load i64, ptr %36, align 8, !tbaa !5
  %50 = tail call i64 @substitute(i64 noundef %49, ptr noundef nonnull @purgeReverseSubstitutionBlock)
  %51 = load i64, ptr %0, align 8, !tbaa !5
  %52 = load i64, ptr %37, align 8, !tbaa !5
  %53 = load i64, ptr %38, align 8, !tbaa !5
  %54 = load i64, ptr %39, align 8, !tbaa !5
  %55 = getelementptr inbounds [8 x i64], ptr %2, i64 %indvars.iv
  %56 = load i64, ptr %55, align 16, !tbaa !5
  %57 = xor i64 %56, %52
  %58 = getelementptr inbounds i8, ptr %55, i64 8
  %59 = load i64, ptr %33, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %55, i64 24
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = load i64, ptr %34, align 8, !tbaa !5
  %63 = xor i64 %62, %61
  %64 = getelementptr inbounds i8, ptr %55, i64 32
  %65 = load i64, ptr %64, align 16, !tbaa !5
  %66 = load i64, ptr %35, align 8, !tbaa !5
  %67 = xor i64 %66, %65
  %68 = getelementptr inbounds i8, ptr %55, i64 40
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = xor i64 %69, %53
  %71 = getelementptr inbounds i8, ptr %55, i64 48
  %72 = load <2 x i64>, ptr %71, align 16, !tbaa !5
  %73 = insertelement <2 x i64> poison, i64 %50, i64 0
  %74 = insertelement <2 x i64> %73, i64 %51, i64 1
  %75 = xor <2 x i64> %72, %74
  %76 = add <2 x i64> %75, <i64 8608480567731124088, i64 -1229782938247303441>
  store <2 x i64> %76, ptr %36, align 8, !tbaa !5
  %77 = sub i64 %70, %57
  store i64 %77, ptr %37, align 8, !tbaa !5
  %78 = sub i64 %67, %63
  store i64 %78, ptr %35, align 8, !tbaa !5
  %79 = tail call i64 @llvm.fshl.i64(i64 %63, i64 %63, i64 51)
  store i64 %79, ptr %34, align 8, !tbaa !5
  %80 = load <2 x i64>, ptr %58, align 8, !tbaa !5
  %81 = insertelement <2 x i64> poison, i64 %59, i64 0
  %82 = insertelement <2 x i64> %81, i64 %54, i64 1
  %83 = xor <2 x i64> %80, %82
  %84 = xor <2 x i64> %83, <i64 -6148914692668172971, i64 6148914692668172970>
  store <2 x i64> %84, ptr %33, align 8, !tbaa !5
  %85 = tail call i64 @llvm.fshl.i64(i64 %57, i64 %57, i64 57)
  store i64 %85, ptr %0, align 8, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %.not = icmp eq i64 %indvars.iv, 0
  br i1 %.not, label %86, label %40, !llvm.loop !9

86:                                               ; preds = %40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %1, i8 0, i64 64, i1 false)
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.fshl.i64(i64, i64, i64) #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass