//
// sub_9F9558 from 0x9f9558 to 0x9f95dc (132 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77fcc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:07:34 +0000
//
int __fastcall sub_9F9558(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;
}