//
// SHA1 from 0xddd180 to 0xddd210 (144 bytes)
//
// 3 xrefs:
// > sub_DA7388 @ 0xda74a4
// > sub_DA7388 @ 0xda7530
// > ??> @ 0x4cd58
//
// 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
//
void *__fastcall SHA1(void *a1, size_t a2, void *a3)
{
void *v3; // x19
_BYTE v7[96]; // [xsp+40h] [xbp+40h] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_125F1D0;
if ( !(unsigned int)SHA1_Init(v7) )
return nullptr;
SHA1_Update((int)v7, a1, a2);
SHA1_Final(v3, v7);
OPENSSL_cleanse(v7, 0x60u);
return v3;
}