//
// sub_7E4958 from 0x7e4958 to 0x7e49dc (132 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30d4c
//
// 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_7E4958(int a1, int a2)
{
int v4; // r6
int v5; // r5
int v6; // r0
bool v7; // zf
int v8; // r3
int v9; // r0
v4 = EC_KEY_get0_group(*(_DWORD *)(a2 + 20));
v5 = EC_KEY_get0_public_key(*(_DWORD *)(a1 + 20));
v6 = EC_KEY_get0_public_key(*(_DWORD *)(a2 + 20));
v7 = v4 == 0;
if ( v4 )
v7 = v5 == 0;
v8 = v7;
if ( !v6 )
v8 |= 1u;
if ( v8 )
return -2;
v9 = EC_POINT_cmp(v4, v5, v6);
if ( !v9 )
return 1;
if ( v9 == 1 )
return 0;
return -2;
}