; LLVM IR from imkcat/CatCrypto :: Sources/ModuleMaps/Argon2 (core)

; 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.__blake2b_state = type { [8 x i64], [2 x i64], [2 x i64], [128 x i8], i32, i32, i8 }
%struct.Argon2_Context = type { ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }

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

; Function Attrs: noinline nounwind optnone uwtable
declare dso_local void @secure_wipe_memory(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @store32(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @initial_hash(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.__blake2b_state, align 8
  %8 = alloca [4 x i8], align 1
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 240, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = icmp eq ptr null, %10
  br i1 %11, label %15, label %12

12:                                               ; preds = %3
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp eq ptr null, %13
  br i1 %14, label %15, label %16

15:                                               ; preds = %12, %3
  store i32 1, ptr %9, align 4
  br label %146

16:                                               ; preds = %12
  %17 = call i32 @blake2b_init(ptr noundef %7, i64 noundef 64)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.Argon2_Context, ptr %18, i32 0, i32 12
  %20 = load i32, ptr %19, align 4, !tbaa !11
  call void @store32(ptr noundef %8, i32 noundef %20)
  %21 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.Argon2_Context, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !13
  call void @store32(ptr noundef %8, i32 noundef %24)
  %25 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.Argon2_Context, ptr %26, i32 0, i32 11
  %28 = load i32, ptr %27, align 8, !tbaa !14
  call void @store32(ptr noundef %8, i32 noundef %28)
  %29 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Argon2_Context, ptr %30, i32 0, i32 10
  %32 = load i32, ptr %31, align 4, !tbaa !15
  call void @store32(ptr noundef %8, i32 noundef %32)
  %33 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Argon2_Context, ptr %34, i32 0, i32 14
  %36 = load i32, ptr %35, align 4, !tbaa !16
  call void @store32(ptr noundef %8, i32 noundef %36)
  %37 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %38 = load i32, ptr %6, align 4, !tbaa !9
  call void @store32(ptr noundef %8, i32 noundef %38)
  %39 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Argon2_Context, ptr %40, i32 0, i32 3
  %42 = load i32, ptr %41, align 8, !tbaa !17
  call void @store32(ptr noundef %8, i32 noundef %42)
  %43 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Argon2_Context, ptr %44, i32 0, i32 2
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %73

48:                                               ; preds = %16
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Argon2_Context, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Argon2_Context, ptr %52, i32 0, i32 3
  %54 = load i32, ptr %53, align 8, !tbaa !17
  %55 = zext i32 %54 to i64
  %56 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %51, i64 noundef %55)
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.Argon2_Context, ptr %57, i32 0, i32 17
  %59 = load i32, ptr %58, align 8, !tbaa !19
  %60 = and i32 %59, 1
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %72

62:                                               ; preds = %48
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.Argon2_Context, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Argon2_Context, ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 8, !tbaa !17
  %69 = zext i32 %68 to i64
  call void @secure_wipe_memory(ptr noundef %65, i64 noundef %69)
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Argon2_Context, ptr %70, i32 0, i32 3
  store i32 0, ptr %71, align 8, !tbaa !17
  br label %72

72:                                               ; preds = %62, %48
  br label %73

73:                                               ; preds = %72, %16
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Argon2_Context, ptr %74, i32 0, i32 5
  %76 = load i32, ptr %75, align 8, !tbaa !20
  call void @store32(ptr noundef %8, i32 noundef %76)
  %77 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Argon2_Context, ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !21
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %91

82:                                               ; preds = %73
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Argon2_Context, ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !21
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.Argon2_Context, ptr %86, i32 0, i32 5
  %88 = load i32, ptr %87, align 8, !tbaa !20
  %89 = zext i32 %88 to i64
  %90 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %85, i64 noundef %89)
  br label %91

91:                                               ; preds = %82, %73
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Argon2_Context, ptr %92, i32 0, i32 7
  %94 = load i32, ptr %93, align 8, !tbaa !22
  call void @store32(ptr noundef %8, i32 noundef %94)
  %95 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Argon2_Context, ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !23
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %125

100:                                              ; preds = %91
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Argon2_Context, ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !23
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Argon2_Context, ptr %104, i32 0, i32 7
  %106 = load i32, ptr %105, align 8, !tbaa !22
  %107 = zext i32 %106 to i64
  %108 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %103, i64 noundef %107)
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Argon2_Context, ptr %109, i32 0, i32 17
  %111 = load i32, ptr %110, align 8, !tbaa !19
  %112 = and i32 %111, 2
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %124

114:                                              ; preds = %100
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Argon2_Context, ptr %115, i32 0, i32 6
  %117 = load ptr, ptr %116, align 8, !tbaa !23
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Argon2_Context, ptr %118, i32 0, i32 7
  %120 = load i32, ptr %119, align 8, !tbaa !22
  %121 = zext i32 %120 to i64
  call void @secure_wipe_memory(ptr noundef %117, i64 noundef %121)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Argon2_Context, ptr %122, i32 0, i32 7
  store i32 0, ptr %123, align 8, !tbaa !22
  br label %124

124:                                              ; preds = %114, %100
  br label %125

125:                                              ; preds = %124, %91
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Argon2_Context, ptr %126, i32 0, i32 9
  %128 = load i32, ptr %127, align 8, !tbaa !24
  call void @store32(ptr noundef %8, i32 noundef %128)
  %129 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %8, i64 noundef 4)
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Argon2_Context, ptr %130, i32 0, i32 8
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %143

134:                                              ; preds = %125
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Argon2_Context, ptr %135, i32 0, i32 8
  %137 = load ptr, ptr %136, align 8, !tbaa !25
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.Argon2_Context, ptr %138, i32 0, i32 9
  %140 = load i32, ptr %139, align 8, !tbaa !24
  %141 = zext i32 %140 to i64
  %142 = call i32 @blake2b_update(ptr noundef %7, ptr noundef %137, i64 noundef %141)
  br label %143

143:                                              ; preds = %134, %125
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = call i32 @blake2b_final(ptr noundef %7, ptr noundef %144, i64 noundef 64)
  store i32 0, ptr %9, align 4
  br label %146

146:                                              ; preds = %143, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 240, ptr %7) #5
  %147 = load i32, ptr %9, align 4
  switch i32 %147, label %149 [
    i32 0, label %148
    i32 1, label %148
  ]

148:                                              ; preds = %146, %146
  ret void

149:                                              ; preds = %146
  unreachable
}

declare i32 @blake2b_init(ptr noundef, i64 noundef) #4

declare i32 @blake2b_update(ptr noundef, ptr noundef, i64 noundef) #4

declare i32 @blake2b_final(ptr noundef, ptr noundef, i64 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline nounwind optnone 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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 84}
!12 = !{!"Argon2_Context", !6, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !6, i64 96, !6, i64 104, !10, i64 112}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 80}
!15 = !{!12, !10, i64 76}
!16 = !{!12, !10, i64 92}
!17 = !{!12, !10, i64 24}
!18 = !{!12, !6, i64 16}
!19 = !{!12, !10, i64 112}
!20 = !{!12, !10, i64 40}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !10, i64 56}
!23 = !{!12, !6, i64 48}
!24 = !{!12, !10, i64 72}
!25 = !{!12, !6, i64 64}


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

%struct.__blake2b_state = type { [8 x i64], [2 x i64], [2 x i64], [128 x i8], i32, i32, i8 }

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

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

; Function Attrs: noinline nounwind optnone uwtable
declare dso_local void @secure_wipe_memory(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @store32(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @initial_hash(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = alloca %struct.__blake2b_state, align 8
  %5 = alloca [4 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %6 = icmp eq ptr %1, null
  %7 = icmp eq ptr %0, null
  %or.cond = or i1 %7, %6
  br i1 %or.cond, label %81, label %8

8:                                                ; preds = %3
  %9 = call i32 @blake2b_init(ptr noundef nonnull %4, i64 noundef 64) #5
  %10 = getelementptr inbounds i8, ptr %1, i64 84
  %11 = load i32, ptr %10, align 4, !tbaa !5
  call void @store32(ptr noundef nonnull %5, i32 noundef %11)
  %12 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !11
  call void @store32(ptr noundef nonnull %5, i32 noundef %14)
  %15 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %16 = getelementptr inbounds i8, ptr %1, i64 80
  %17 = load i32, ptr %16, align 8, !tbaa !12
  call void @store32(ptr noundef nonnull %5, i32 noundef %17)
  %18 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %19 = getelementptr inbounds i8, ptr %1, i64 76
  %20 = load i32, ptr %19, align 4, !tbaa !13
  call void @store32(ptr noundef nonnull %5, i32 noundef %20)
  %21 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %22 = getelementptr inbounds i8, ptr %1, i64 92
  %23 = load i32, ptr %22, align 4, !tbaa !14
  call void @store32(ptr noundef nonnull %5, i32 noundef %23)
  %24 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  call void @store32(ptr noundef nonnull %5, i32 noundef %2)
  %25 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = load i32, ptr %26, align 8, !tbaa !15
  call void @store32(ptr noundef nonnull %5, i32 noundef %27)
  %28 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %29 = getelementptr inbounds i8, ptr %1, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %42, label %31

31:                                               ; preds = %8
  %32 = load i32, ptr %26, align 8, !tbaa !15
  %33 = zext i32 %32 to i64
  %34 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %30, i64 noundef %33) #5
  %35 = getelementptr inbounds i8, ptr %1, i64 112
  %36 = load i32, ptr %35, align 8, !tbaa !17
  %37 = and i32 %36, 1
  %.not38 = icmp eq i32 %37, 0
  br i1 %.not38, label %42, label %38

38:                                               ; preds = %31
  %39 = load ptr, ptr %29, align 8, !tbaa !16
  %40 = load i32, ptr %26, align 8, !tbaa !15
  %41 = zext i32 %40 to i64
  call void @secure_wipe_memory(ptr noundef %39, i64 noundef %41)
  store i32 0, ptr %26, align 8, !tbaa !15
  br label %42

42:                                               ; preds = %31, %38, %8
  %43 = getelementptr inbounds i8, ptr %1, i64 40
  %44 = load i32, ptr %43, align 8, !tbaa !18
  call void @store32(ptr noundef nonnull %5, i32 noundef %44)
  %45 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %46 = getelementptr inbounds i8, ptr %1, i64 32
  %47 = load ptr, ptr %46, align 8, !tbaa !19
  %.not39 = icmp eq ptr %47, null
  br i1 %.not39, label %52, label %48

48:                                               ; preds = %42
  %49 = load i32, ptr %43, align 8, !tbaa !18
  %50 = zext i32 %49 to i64
  %51 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %47, i64 noundef %50) #5
  br label %52

52:                                               ; preds = %48, %42
  %53 = getelementptr inbounds i8, ptr %1, i64 56
  %54 = load i32, ptr %53, align 8, !tbaa !20
  call void @store32(ptr noundef nonnull %5, i32 noundef %54)
  %55 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %56 = getelementptr inbounds i8, ptr %1, i64 48
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %.not40 = icmp eq ptr %57, null
  br i1 %.not40, label %69, label %58

58:                                               ; preds = %52
  %59 = load i32, ptr %53, align 8, !tbaa !20
  %60 = zext i32 %59 to i64
  %61 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %57, i64 noundef %60) #5
  %62 = getelementptr inbounds i8, ptr %1, i64 112
  %63 = load i32, ptr %62, align 8, !tbaa !17
  %64 = and i32 %63, 2
  %.not41 = icmp eq i32 %64, 0
  br i1 %.not41, label %69, label %65

65:                                               ; preds = %58
  %66 = load ptr, ptr %56, align 8, !tbaa !21
  %67 = load i32, ptr %53, align 8, !tbaa !20
  %68 = zext i32 %67 to i64
  call void @secure_wipe_memory(ptr noundef %66, i64 noundef %68)
  store i32 0, ptr %53, align 8, !tbaa !20
  br label %69

69:                                               ; preds = %58, %65, %52
  %70 = getelementptr inbounds i8, ptr %1, i64 72
  %71 = load i32, ptr %70, align 8, !tbaa !22
  call void @store32(ptr noundef nonnull %5, i32 noundef %71)
  %72 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 4) #5
  %73 = getelementptr inbounds i8, ptr %1, i64 64
  %74 = load ptr, ptr %73, align 8, !tbaa !23
  %.not42 = icmp eq ptr %74, null
  br i1 %.not42, label %79, label %75

75:                                               ; preds = %69
  %76 = load i32, ptr %70, align 8, !tbaa !22
  %77 = zext i32 %76 to i64
  %78 = call i32 @blake2b_update(ptr noundef nonnull %4, ptr noundef nonnull %74, i64 noundef %77) #5
  br label %79

79:                                               ; preds = %75, %69
  %80 = call i32 @blake2b_final(ptr noundef nonnull %4, ptr noundef nonnull %0, i64 noundef 64) #5
  br label %81

81:                                               ; preds = %3, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %4) #5
  ret void
}

declare i32 @blake2b_init(ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @blake2b_update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @blake2b_final(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline nounwind optnone 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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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, !10, i64 84}
!6 = !{!"Argon2_Context", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 104, !10, i64 112}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 80}
!13 = !{!6, !10, i64 76}
!14 = !{!6, !10, i64 92}
!15 = !{!6, !10, i64 24}
!16 = !{!6, !7, i64 16}
!17 = !{!6, !10, i64 112}
!18 = !{!6, !10, i64 40}
!19 = !{!6, !7, i64 32}
!20 = !{!6, !10, i64 56}
!21 = !{!6, !7, i64 48}
!22 = !{!6, !10, i64 72}
!23 = !{!6, !7, i64 64}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass