; LLVM IR from trustwallet/wallet-core :: trezor-crypto/crypto (sha2)

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

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

declare void @memzero(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @sha1_Transform(ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @sha1_Final(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  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 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %193

14:                                               ; preds = %2
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._SHA1_CTX, ptr %15, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %18 = lshr i64 %17, 3
  %19 = urem i64 %18, 64
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr %5, align 4, !tbaa !9
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._SHA1_CTX, ptr %21, i32 0, i32 2
  %23 = getelementptr inbounds [16 x i32], ptr %22, i64 0, i64 0
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = add i32 %24, 1
  store i32 %25, ptr %5, align 4, !tbaa !9
  %26 = zext i32 %24 to i64
  %27 = getelementptr inbounds i8, ptr %23, i64 %26
  store i8 -128, ptr %27, align 1, !tbaa !14
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = icmp ugt i32 %28, 56
  br i1 %29, label %30, label %84

30:                                               ; preds = %14
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._SHA1_CTX, ptr %31, i32 0, i32 2
  %33 = getelementptr inbounds [16 x i32], ptr %32, i64 0, i64 0
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds i8, ptr %33, i64 %35
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = sub i32 64, %37
  %39 = zext i32 %38 to i64
  call void @memzero(ptr noundef %36, i64 noundef %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %71, %30
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 16
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %74

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._SHA1_CTX, ptr %45, i32 0, i32 2
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [16 x i32], ptr %46, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !9
  store i32 %50, ptr %7, align 4, !tbaa !9
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = lshr i32 %51, 16
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = shl i32 %53, 16
  %55 = or i32 %52, %54
  store i32 %55, ptr %7, align 4, !tbaa !9
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = and i64 %57, 4278255360
  %59 = lshr i64 %58, 8
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = and i64 %61, 16711935
  %63 = shl i64 %62, 8
  %64 = or i64 %59, %63
  %65 = trunc i64 %64 to i32
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._SHA1_CTX, ptr %66, i32 0, i32 2
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [16 x i32], ptr %67, i64 0, i64 %69
  store i32 %65, ptr %70, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %71

71:                                               ; preds = %44
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %6, align 4, !tbaa !9
  br label %40, !llvm.loop !15

74:                                               ; preds = %43
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._SHA1_CTX, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds [5 x i32], ptr %76, i64 0, i64 0
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._SHA1_CTX, ptr %78, i32 0, i32 2
  %80 = getelementptr inbounds [16 x i32], ptr %79, i64 0, i64 0
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._SHA1_CTX, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds [5 x i32], ptr %82, i64 0, i64 0
  call void @sha1_Transform(ptr noundef %77, ptr noundef %80, ptr noundef %83)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %74, %14
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._SHA1_CTX, ptr %85, i32 0, i32 2
  %87 = getelementptr inbounds [16 x i32], ptr %86, i64 0, i64 0
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %87, i64 %89
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = sub i32 56, %91
  %93 = zext i32 %92 to i64
  call void @memzero(ptr noundef %90, i64 noundef %93)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %125, %84
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = icmp slt i32 %95, 14
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %128

98:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._SHA1_CTX, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [16 x i32], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !9
  store i32 %104, ptr %9, align 4, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = lshr i32 %105, 16
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = shl i32 %107, 16
  %109 = or i32 %106, %108
  store i32 %109, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = and i64 %111, 4278255360
  %113 = lshr i64 %112, 8
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = and i64 %115, 16711935
  %117 = shl i64 %116, 8
  %118 = or i64 %113, %117
  %119 = trunc i64 %118 to i32
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._SHA1_CTX, ptr %120, i32 0, i32 2
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [16 x i32], ptr %121, i64 0, i64 %123
  store i32 %119, ptr %124, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %125

125:                                              ; preds = %98
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %8, align 4, !tbaa !9
  br label %94, !llvm.loop !17

128:                                              ; preds = %97
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct._SHA1_CTX, ptr %129, i32 0, i32 1
  %131 = load i64, ptr %130, align 8, !tbaa !11
  %132 = lshr i64 %131, 32
  %133 = trunc i64 %132 to i32
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._SHA1_CTX, ptr %134, i32 0, i32 2
  %136 = getelementptr inbounds [16 x i32], ptr %135, i64 0, i64 14
  store i32 %133, ptr %136, align 8, !tbaa !9
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._SHA1_CTX, ptr %137, i32 0, i32 1
  %139 = load i64, ptr %138, align 8, !tbaa !11
  %140 = and i64 %139, 4294967295
  %141 = trunc i64 %140 to i32
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._SHA1_CTX, ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds [16 x i32], ptr %143, i64 0, i64 15
  store i32 %141, ptr %144, align 4, !tbaa !9
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct._SHA1_CTX, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds [5 x i32], ptr %146, i64 0, i64 0
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct._SHA1_CTX, ptr %148, i32 0, i32 2
  %150 = getelementptr inbounds [16 x i32], ptr %149, i64 0, i64 0
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._SHA1_CTX, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds [5 x i32], ptr %152, i64 0, i64 0
  call void @sha1_Transform(ptr noundef %147, ptr noundef %150, ptr noundef %153)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %185, %128
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = icmp slt i32 %155, 5
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %188

158:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct._SHA1_CTX, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %10, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [5 x i32], ptr %160, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !9
  store i32 %164, ptr %11, align 4, !tbaa !9
  %165 = load i32, ptr %11, align 4, !tbaa !9
  %166 = lshr i32 %165, 16
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = shl i32 %167, 16
  %169 = or i32 %166, %168
  store i32 %169, ptr %11, align 4, !tbaa !9
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = and i64 %171, 4278255360
  %173 = lshr i64 %172, 8
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = and i64 %175, 16711935
  %177 = shl i64 %176, 8
  %178 = or i64 %173, %177
  %179 = trunc i64 %178 to i32
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._SHA1_CTX, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [5 x i32], ptr %181, i64 0, i64 %183
  store i32 %179, ptr %184, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %185

185:                                              ; preds = %158
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %10, align 4, !tbaa !9
  br label %154, !llvm.loop !18

188:                                              ; preds = %157
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct._SHA1_CTX, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds [5 x i32], ptr %191, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %189, ptr align 8 %192, i64 20, i1 false)
  br label %193

193:                                              ; preds = %188, %2
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  call void @memzero(ptr noundef %194, i64 noundef 96)
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

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


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

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

declare void @memzero(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sha1_Transform(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @sha1_Final(ptr noundef %0, ptr noundef writeonly %1) local_unnamed_addr #2 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %57, label %3

3:                                                ; preds = %2
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = trunc i64 %5 to i32
  %7 = lshr i32 %6, 3
  %8 = and i32 %7, 63
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = add nuw nsw i32 %8, 1
  %11 = zext nneg i32 %8 to i64
  %12 = getelementptr inbounds i8, ptr %9, i64 %11
  store i8 -128, ptr %12, align 1, !tbaa !10
  %13 = icmp ugt i32 %8, 55
  br i1 %13, label %14, label %30

14:                                               ; preds = %3
  %15 = zext nneg i32 %10 to i64
  %16 = getelementptr inbounds i8, ptr %9, i64 %15
  %17 = xor i32 %8, 63
  %18 = zext nneg i32 %17 to i64
  tail call void @memzero(ptr noundef nonnull %16, i64 noundef %18) #4
  %19 = load <4 x i32>, ptr %9, align 4, !tbaa !11
  %20 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %19)
  store <4 x i32> %20, ptr %9, align 4, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  %22 = load <4 x i32>, ptr %21, align 4, !tbaa !11
  %23 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %22)
  store <4 x i32> %23, ptr %21, align 4, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  %25 = load <4 x i32>, ptr %24, align 4, !tbaa !11
  %26 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %25)
  store <4 x i32> %26, ptr %24, align 4, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %0, i64 80
  %28 = load <4 x i32>, ptr %27, align 4, !tbaa !11
  %29 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %28)
  store <4 x i32> %29, ptr %27, align 4, !tbaa !11
  tail call void @sha1_Transform(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %0)
  br label %30

30:                                               ; preds = %14, %3
  %.0 = phi i32 [ 0, %14 ], [ %10, %3 ]
  %31 = zext nneg i32 %.0 to i64
  %32 = getelementptr inbounds i8, ptr %9, i64 %31
  %33 = sub nuw nsw i32 56, %.0
  %34 = zext nneg i32 %33 to i64
  tail call void @memzero(ptr noundef nonnull %32, i64 noundef %34) #4
  %35 = load <4 x i32>, ptr %9, align 4, !tbaa !11
  %36 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %35)
  store <4 x i32> %36, ptr %9, align 4, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = load <4 x i32>, ptr %37, align 4, !tbaa !11
  %39 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %38)
  store <4 x i32> %39, ptr %37, align 4, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %0, i64 64
  %41 = load <4 x i32>, ptr %40, align 4, !tbaa !11
  %42 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %41)
  store <4 x i32> %42, ptr %40, align 4, !tbaa !11
  %43 = getelementptr inbounds i8, ptr %0, i64 80
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %rev58.12 = tail call i32 @llvm.bswap.i32(i32 %44)
  store i32 %rev58.12, ptr %43, align 4, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %0, i64 84
  %46 = load i32, ptr %45, align 4, !tbaa !11
  %rev58.13 = tail call i32 @llvm.bswap.i32(i32 %46)
  store i32 %rev58.13, ptr %45, align 4, !tbaa !11
  %47 = load i64, ptr %4, align 8, !tbaa !5
  %48 = lshr i64 %47, 32
  %49 = trunc nuw i64 %48 to i32
  %50 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %49, ptr %50, align 8, !tbaa !11
  %51 = trunc i64 %47 to i32
  %52 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %51, ptr %52, align 4, !tbaa !11
  tail call void @sha1_Transform(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %0)
  %53 = load <4 x i32>, ptr %0, align 4, !tbaa !11
  %54 = tail call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %53)
  store <4 x i32> %54, ptr %0, align 4, !tbaa !11
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %rev.4 = tail call i32 @llvm.bswap.i32(i32 %56)
  store i32 %rev.4, ptr %55, align 4, !tbaa !11
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(20) %1, ptr noundef nonnull align 8 dereferenceable(20) %0, i64 20, i1 false)
  br label %57

57:                                               ; preds = %30, %2
  tail call void @memzero(ptr noundef %0, i64 noundef 96) #4
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.bswap.v4i32(<4 x i32>) #3

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !9, i64 24}
!6 = !{!"_SHA1_CTX", !7, i64 0, !9, i64 24, !7, i64 32}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"long", !7, i64 0}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass