//
// SHA1 from 0x835458 to 0x8354c0 (104 bytes)
//
// 3 xrefs:
// > sub_8009C0 @ 0x800ad4
// > sub_8009C0 @ 0x800ba8
// > ??> @ 0x6322c
//
// 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 SHA1(void *a1, int a2, void *a3)
{
void *v3; // r4
int result; // r0
_BYTE v6[100]; // [sp+0h] [bp-64h] BYREF
v3 = a3;
if ( !a3 )
v3 = &unk_AD4528;
result = SHA1_Init(v6);
if ( result )
{
SHA1_Update((int)v6, a1);
SHA1_Final(v3, v6);
OPENSSL_cleanse(v6, 0x60u);
return (int)v3;
}
return result;
}