//
// EC_GROUP_get_cofactor from 0x7ea238 to 0x7ea284 (76 bytes)
//
// 2 xrefs:
// > ecdh_simple_compute_key @ 0x7ed768
// > ??> @ 0x61a3c
//
// 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
//
bool __fastcall EC_GROUP_get_cofactor(int a1, int a2)
{
int v2; // r2
v2 = *(_DWORD *)(a1 + 12);
if ( !v2 )
return 0;
if ( BN_copy(a2, v2) )
return !BN_is_zero(*(_DWORD *)(a1 + 12));
return 0;
}