//
// sub_8040AC from 0x8040ac to 0x8040e8 (60 bytes)
//
// 2 xrefs:
// > sub_804140 @ 0x804244
// > ??> @ 0xa32160
//
// 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 sub_8040AC(int a1, void *a2)
{
int v3; // r6
int result; // r0
v3 = EVP_MD_CTX_md_data(a1);
result = MD5_Update(v3, a2);
if ( result )
return SHA1_Update(v3 + 92, a2);
return result;
}