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

@sha2_hex_digits = external dso_local global ptr, align 8

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @sha1_End(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [20 x i8], align 16
  %6 = alloca ptr, align 8
  %7 = 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 20, ptr %5) #4
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %8 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
  store ptr %8, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %46

11:                                               ; preds = %2
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
  call void @sha1_Final(ptr noundef %12, ptr noundef %13)
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %41, %11
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = icmp slt i32 %15, 20
  br i1 %16, label %17, label %44

17:                                               ; preds = %14
  %18 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = load i8, ptr %19, align 1, !tbaa !11
  %21 = zext i8 %20 to i32
  %22 = and i32 %21, 240
  %23 = ashr i32 %22, 4
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr %18, i64 %24
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i32 1
  store ptr %28, ptr %4, align 8, !tbaa !5
  store i8 %26, ptr %27, align 1, !tbaa !11
  %29 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load i8, ptr %30, align 1, !tbaa !11
  %32 = zext i8 %31 to i32
  %33 = and i32 %32, 15
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %29, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i32 1
  store ptr %38, ptr %4, align 8, !tbaa !5
  store i8 %36, ptr %37, align 1, !tbaa !11
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i32 1
  store ptr %40, ptr %6, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %17
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %7, align 4, !tbaa !9
  br label %14, !llvm.loop !12

44:                                               ; preds = %14
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  store i8 0, ptr %45, align 1, !tbaa !11
  br label %48

46:                                               ; preds = %2
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  call void @memzero(ptr noundef %47, i64 noundef 96)
  br label %48

48:                                               ; preds = %46, %44
  %49 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
  call void @memzero(ptr noundef %49, i64 noundef 20)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %5) #4
  ret ptr %50
}

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

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

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


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

@sha2_hex_digits = external dso_local local_unnamed_addr global ptr, align 8

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @sha1_End(ptr noundef %0, ptr noundef writeonly %1) local_unnamed_addr #3 {
  %3 = alloca [20 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %3, i8 0, i64 20, i1 false)
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %255, label %4

4:                                                ; preds = %2
  call void @sha1_Final(ptr noundef %0, ptr noundef nonnull %3)
  %5 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %6 = load i8, ptr %3, align 16, !tbaa !9
  %7 = lshr i8 %6, 4
  %8 = zext nneg i8 %7 to i64
  %9 = getelementptr inbounds i8, ptr %5, i64 %8
  %10 = load i8, ptr %9, align 1, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %1, i64 1
  store i8 %10, ptr %1, align 1, !tbaa !9
  %12 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %13 = and i8 %6, 15
  %14 = zext nneg i8 %13 to i64
  %15 = getelementptr inbounds i8, ptr %12, i64 %14
  %16 = load i8, ptr %15, align 1, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %1, i64 2
  store i8 %16, ptr %11, align 1, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %3, i64 1
  %19 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %20 = load i8, ptr %18, align 1, !tbaa !9
  %21 = lshr i8 %20, 4
  %22 = zext nneg i8 %21 to i64
  %23 = getelementptr inbounds i8, ptr %19, i64 %22
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %1, i64 3
  store i8 %24, ptr %17, align 1, !tbaa !9
  %26 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %27 = and i8 %20, 15
  %28 = zext nneg i8 %27 to i64
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %1, i64 4
  store i8 %30, ptr %25, align 1, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %3, i64 2
  %33 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %34 = load i8, ptr %32, align 2, !tbaa !9
  %35 = lshr i8 %34, 4
  %36 = zext nneg i8 %35 to i64
  %37 = getelementptr inbounds i8, ptr %33, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %1, i64 5
  store i8 %38, ptr %31, align 1, !tbaa !9
  %40 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %41 = and i8 %34, 15
  %42 = zext nneg i8 %41 to i64
  %43 = getelementptr inbounds i8, ptr %40, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %1, i64 6
  store i8 %44, ptr %39, align 1, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %3, i64 3
  %47 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %48 = load i8, ptr %46, align 1, !tbaa !9
  %49 = lshr i8 %48, 4
  %50 = zext nneg i8 %49 to i64
  %51 = getelementptr inbounds i8, ptr %47, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %1, i64 7
  store i8 %52, ptr %45, align 1, !tbaa !9
  %54 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %55 = and i8 %48, 15
  %56 = zext nneg i8 %55 to i64
  %57 = getelementptr inbounds i8, ptr %54, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %1, i64 8
  store i8 %58, ptr %53, align 1, !tbaa !9
  %60 = getelementptr inbounds i8, ptr %3, i64 4
  %61 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %62 = load i8, ptr %60, align 4, !tbaa !9
  %63 = lshr i8 %62, 4
  %64 = zext nneg i8 %63 to i64
  %65 = getelementptr inbounds i8, ptr %61, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !9
  %67 = getelementptr inbounds i8, ptr %1, i64 9
  store i8 %66, ptr %59, align 1, !tbaa !9
  %68 = and i8 %62, 15
  %69 = zext nneg i8 %68 to i64
  %70 = getelementptr inbounds i8, ptr %61, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %1, i64 10
  store i8 %71, ptr %67, align 1, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %3, i64 5
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %75 = lshr i8 %74, 4
  %76 = zext nneg i8 %75 to i64
  %77 = getelementptr inbounds i8, ptr %61, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %1, i64 11
  store i8 %78, ptr %72, align 1, !tbaa !9
  %80 = and i8 %74, 15
  %81 = zext nneg i8 %80 to i64
  %82 = getelementptr inbounds i8, ptr %61, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !9
  %84 = getelementptr inbounds i8, ptr %1, i64 12
  store i8 %83, ptr %79, align 1, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %3, i64 6
  %86 = load i8, ptr %85, align 2, !tbaa !9
  %87 = lshr i8 %86, 4
  %88 = zext nneg i8 %87 to i64
  %89 = getelementptr inbounds i8, ptr %61, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %1, i64 13
  store i8 %90, ptr %84, align 1, !tbaa !9
  %92 = and i8 %86, 15
  %93 = zext nneg i8 %92 to i64
  %94 = getelementptr inbounds i8, ptr %61, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %1, i64 14
  store i8 %95, ptr %91, align 1, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %3, i64 7
  %98 = load i8, ptr %97, align 1, !tbaa !9
  %99 = lshr i8 %98, 4
  %100 = zext nneg i8 %99 to i64
  %101 = getelementptr inbounds i8, ptr %61, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %1, i64 15
  store i8 %102, ptr %96, align 1, !tbaa !9
  %104 = and i8 %98, 15
  %105 = zext nneg i8 %104 to i64
  %106 = getelementptr inbounds i8, ptr %61, i64 %105
  %107 = load i8, ptr %106, align 1, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %1, i64 16
  store i8 %107, ptr %103, align 1, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %3, i64 8
  %110 = load i8, ptr %109, align 8, !tbaa !9
  %111 = lshr i8 %110, 4
  %112 = zext nneg i8 %111 to i64
  %113 = getelementptr inbounds i8, ptr %61, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !9
  %115 = getelementptr inbounds i8, ptr %1, i64 17
  store i8 %114, ptr %108, align 1, !tbaa !9
  %116 = and i8 %110, 15
  %117 = zext nneg i8 %116 to i64
  %118 = getelementptr inbounds i8, ptr %61, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !9
  %120 = getelementptr inbounds i8, ptr %1, i64 18
  store i8 %119, ptr %115, align 1, !tbaa !9
  %121 = getelementptr inbounds i8, ptr %3, i64 9
  %122 = load i8, ptr %121, align 1, !tbaa !9
  %123 = lshr i8 %122, 4
  %124 = zext nneg i8 %123 to i64
  %125 = getelementptr inbounds i8, ptr %61, i64 %124
  %126 = load i8, ptr %125, align 1, !tbaa !9
  %127 = getelementptr inbounds i8, ptr %1, i64 19
  store i8 %126, ptr %120, align 1, !tbaa !9
  %128 = and i8 %122, 15
  %129 = zext nneg i8 %128 to i64
  %130 = getelementptr inbounds i8, ptr %61, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !9
  %132 = getelementptr inbounds i8, ptr %1, i64 20
  store i8 %131, ptr %127, align 1, !tbaa !9
  %133 = getelementptr inbounds i8, ptr %3, i64 10
  %134 = load i8, ptr %133, align 2, !tbaa !9
  %135 = lshr i8 %134, 4
  %136 = zext nneg i8 %135 to i64
  %137 = getelementptr inbounds i8, ptr %61, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !9
  %139 = getelementptr inbounds i8, ptr %1, i64 21
  store i8 %138, ptr %132, align 1, !tbaa !9
  %140 = and i8 %134, 15
  %141 = zext nneg i8 %140 to i64
  %142 = getelementptr inbounds i8, ptr %61, i64 %141
  %143 = load i8, ptr %142, align 1, !tbaa !9
  %144 = getelementptr inbounds i8, ptr %1, i64 22
  store i8 %143, ptr %139, align 1, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %3, i64 11
  %146 = load i8, ptr %145, align 1, !tbaa !9
  %147 = lshr i8 %146, 4
  %148 = zext nneg i8 %147 to i64
  %149 = getelementptr inbounds i8, ptr %61, i64 %148
  %150 = load i8, ptr %149, align 1, !tbaa !9
  %151 = getelementptr inbounds i8, ptr %1, i64 23
  store i8 %150, ptr %144, align 1, !tbaa !9
  %152 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %153 = and i8 %146, 15
  %154 = zext nneg i8 %153 to i64
  %155 = getelementptr inbounds i8, ptr %152, i64 %154
  %156 = load i8, ptr %155, align 1, !tbaa !9
  %157 = getelementptr inbounds i8, ptr %1, i64 24
  store i8 %156, ptr %151, align 1, !tbaa !9
  %158 = getelementptr inbounds i8, ptr %3, i64 12
  %159 = load i8, ptr %158, align 4, !tbaa !9
  %160 = lshr i8 %159, 4
  %161 = zext nneg i8 %160 to i64
  %162 = getelementptr inbounds i8, ptr %152, i64 %161
  %163 = load i8, ptr %162, align 1, !tbaa !9
  %164 = getelementptr inbounds i8, ptr %1, i64 25
  store i8 %163, ptr %157, align 1, !tbaa !9
  %165 = and i8 %159, 15
  %166 = zext nneg i8 %165 to i64
  %167 = getelementptr inbounds i8, ptr %152, i64 %166
  %168 = load i8, ptr %167, align 1, !tbaa !9
  %169 = getelementptr inbounds i8, ptr %1, i64 26
  store i8 %168, ptr %164, align 1, !tbaa !9
  %170 = getelementptr inbounds i8, ptr %3, i64 13
  %171 = load i8, ptr %170, align 1, !tbaa !9
  %172 = lshr i8 %171, 4
  %173 = zext nneg i8 %172 to i64
  %174 = getelementptr inbounds i8, ptr %152, i64 %173
  %175 = load i8, ptr %174, align 1, !tbaa !9
  %176 = getelementptr inbounds i8, ptr %1, i64 27
  store i8 %175, ptr %169, align 1, !tbaa !9
  %177 = and i8 %171, 15
  %178 = zext nneg i8 %177 to i64
  %179 = getelementptr inbounds i8, ptr %152, i64 %178
  %180 = load i8, ptr %179, align 1, !tbaa !9
  %181 = getelementptr inbounds i8, ptr %1, i64 28
  store i8 %180, ptr %176, align 1, !tbaa !9
  %182 = getelementptr inbounds i8, ptr %3, i64 14
  %183 = load i8, ptr %182, align 2, !tbaa !9
  %184 = lshr i8 %183, 4
  %185 = zext nneg i8 %184 to i64
  %186 = getelementptr inbounds i8, ptr %152, i64 %185
  %187 = load i8, ptr %186, align 1, !tbaa !9
  %188 = getelementptr inbounds i8, ptr %1, i64 29
  store i8 %187, ptr %181, align 1, !tbaa !9
  %189 = and i8 %183, 15
  %190 = zext nneg i8 %189 to i64
  %191 = getelementptr inbounds i8, ptr %152, i64 %190
  %192 = load i8, ptr %191, align 1, !tbaa !9
  %193 = getelementptr inbounds i8, ptr %1, i64 30
  store i8 %192, ptr %188, align 1, !tbaa !9
  %194 = getelementptr inbounds i8, ptr %3, i64 15
  %195 = load i8, ptr %194, align 1, !tbaa !9
  %196 = lshr i8 %195, 4
  %197 = zext nneg i8 %196 to i64
  %198 = getelementptr inbounds i8, ptr %152, i64 %197
  %199 = load i8, ptr %198, align 1, !tbaa !9
  %200 = getelementptr inbounds i8, ptr %1, i64 31
  store i8 %199, ptr %193, align 1, !tbaa !9
  %201 = and i8 %195, 15
  %202 = zext nneg i8 %201 to i64
  %203 = getelementptr inbounds i8, ptr %152, i64 %202
  %204 = load i8, ptr %203, align 1, !tbaa !9
  %205 = getelementptr inbounds i8, ptr %1, i64 32
  store i8 %204, ptr %200, align 1, !tbaa !9
  %206 = getelementptr inbounds i8, ptr %3, i64 16
  %207 = load i8, ptr %206, align 16, !tbaa !9
  %208 = lshr i8 %207, 4
  %209 = zext nneg i8 %208 to i64
  %210 = getelementptr inbounds i8, ptr %152, i64 %209
  %211 = load i8, ptr %210, align 1, !tbaa !9
  %212 = getelementptr inbounds i8, ptr %1, i64 33
  store i8 %211, ptr %205, align 1, !tbaa !9
  %213 = and i8 %207, 15
  %214 = zext nneg i8 %213 to i64
  %215 = getelementptr inbounds i8, ptr %152, i64 %214
  %216 = load i8, ptr %215, align 1, !tbaa !9
  %217 = getelementptr inbounds i8, ptr %1, i64 34
  store i8 %216, ptr %212, align 1, !tbaa !9
  %218 = getelementptr inbounds i8, ptr %3, i64 17
  %219 = load i8, ptr %218, align 1, !tbaa !9
  %220 = lshr i8 %219, 4
  %221 = zext nneg i8 %220 to i64
  %222 = getelementptr inbounds i8, ptr %152, i64 %221
  %223 = load i8, ptr %222, align 1, !tbaa !9
  %224 = getelementptr inbounds i8, ptr %1, i64 35
  store i8 %223, ptr %217, align 1, !tbaa !9
  %225 = and i8 %219, 15
  %226 = zext nneg i8 %225 to i64
  %227 = getelementptr inbounds i8, ptr %152, i64 %226
  %228 = load i8, ptr %227, align 1, !tbaa !9
  %229 = getelementptr inbounds i8, ptr %1, i64 36
  store i8 %228, ptr %224, align 1, !tbaa !9
  %230 = getelementptr inbounds i8, ptr %3, i64 18
  %231 = load i8, ptr %230, align 2, !tbaa !9
  %232 = lshr i8 %231, 4
  %233 = zext nneg i8 %232 to i64
  %234 = getelementptr inbounds i8, ptr %152, i64 %233
  %235 = load i8, ptr %234, align 1, !tbaa !9
  %236 = getelementptr inbounds i8, ptr %1, i64 37
  store i8 %235, ptr %229, align 1, !tbaa !9
  %237 = and i8 %231, 15
  %238 = zext nneg i8 %237 to i64
  %239 = getelementptr inbounds i8, ptr %152, i64 %238
  %240 = load i8, ptr %239, align 1, !tbaa !9
  %241 = getelementptr inbounds i8, ptr %1, i64 38
  store i8 %240, ptr %236, align 1, !tbaa !9
  %242 = getelementptr inbounds i8, ptr %3, i64 19
  %243 = load ptr, ptr @sha2_hex_digits, align 8, !tbaa !5
  %244 = load i8, ptr %242, align 1, !tbaa !9
  %245 = lshr i8 %244, 4
  %246 = zext nneg i8 %245 to i64
  %247 = getelementptr inbounds i8, ptr %243, i64 %246
  %248 = load i8, ptr %247, align 1, !tbaa !9
  %249 = getelementptr inbounds i8, ptr %1, i64 39
  store i8 %248, ptr %241, align 1, !tbaa !9
  %250 = and i8 %244, 15
  %251 = zext nneg i8 %250 to i64
  %252 = getelementptr inbounds i8, ptr %243, i64 %251
  %253 = load i8, ptr %252, align 1, !tbaa !9
  %254 = getelementptr inbounds i8, ptr %1, i64 40
  store i8 %253, ptr %249, align 1, !tbaa !9
  store i8 0, ptr %254, align 1, !tbaa !9
  br label %256

255:                                              ; preds = %2
  tail call void @memzero(ptr noundef %0, i64 noundef 96) #4
  br label %256

256:                                              ; preds = %255, %4
  %.1 = phi ptr [ %254, %4 ], [ null, %255 ]
  call void @memzero(ptr noundef nonnull %3, i64 noundef 20) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #4
  ret ptr %.1
}

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

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

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


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