//
// ENGINE_set_default_digests from 0x7f8e74 to 0x7f8ee8 (116 bytes)
//
// 2 xrefs:
// > ENGINE_set_default @ 0x7f6edc
// > ??> @ 0x621ec
//
// 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 ENGINE_set_default_digests(int a1)
{
int (*v1)(void); // r12
int v3; // r0
int v5; // [sp+Ch] [bp-Ch]
v1 = *(int (**)(void))(a1 + 32);
if ( !v1 )
return 1;
v3 = v1();
if ( v3 > 0 )
return engine_table_register(&unk_AD2E98, sub_7F8DA8, a1, v5, v3, 1);
else
return 1;
}