//
// SHA512 from 0x105c59c to 0x105c618 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x105028
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:48 +0000
//
_BYTE *__fastcall SHA512(char *a1, size_t a2, _BYTE *a3)
{
_BYTE *v3; // x19
__int64 v7[27]; // [xsp+48h] [xbp+48h] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_1568060;
SHA512_Init((__int64)v7);
SHA512_Update((__int64)v7, a1, a2);
SHA512_Final(v3, v7);
OPENSSL_cleanse(v7, 0xD8u);
return v3;
}