//
// SHA512_Init from 0x835f70 to 0x836000 (144 bytes)
//
// 5 xrefs:
// > ssl3_cbc_digest_record @ 0x78d6b8
// > sub_8044EC @ 0x8044f8
// > SHA512 @ 0x836694
// > BN_generate_dsa_nonce @ 0x87109c
// > ??> @ 0x5ab7c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall SHA512_Init(int a1)
{
*(_QWORD *)(a1 + 16) = 0x3C6EF372FE94F82BLL;
*(_QWORD *)a1 = 0x6A09E667F3BCC908LL;
*(_QWORD *)(a1 + 40) = 0x9B05688C2B3E6C1FLL;
*(_QWORD *)(a1 + 24) = 0xA54FF53A5F1D36F1LL;
*(_QWORD *)(a1 + 8) = 0xBB67AE8584CAA73BLL;
*(_QWORD *)(a1 + 32) = 0x510E527FADE682D1LL;
*(_QWORD *)(a1 + 48) = 0x1F83D9ABFB41BD6BLL;
*(_QWORD *)(a1 + 56) = 0x5BE0CD19137E2179LL;
*(_DWORD *)(a1 + 208) = 0;
*(_DWORD *)(a1 + 212) = 64;
*(_QWORD *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 72) = 0;
return 1;
}