//
// SHA512 from 0xa4b278 to 0xa4b2dc (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x800fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:20 +0000
//
_BYTE *__fastcall SHA512(char *a1, size_t a2, _BYTE *a3)
{
_BYTE *v3; // r5
int v7[55]; // [sp+0h] [bp-DCh] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_D35834;
SHA512_Init((int)v7);
SHA512_Update((int)v7, a1, a2);
SHA512_Final(v3, v7);
OPENSSL_cleanse(v7, 0xD8u);
return v3;
}