//
// sub_100A37C from 0x100a37c to 0x100a414 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x1400418
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:59 +0000
//
__int64 __fastcall sub_100A37C(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x20
__int64 v6; // x2
int v7; // w1
__int64 result; // x0
v4 = EC_KEY_get0_group(*(_QWORD *)(a2 + 32));
v5 = EC_KEY_get0_public_key(*(_QWORD *)(a1 + 32));
v6 = EC_KEY_get0_public_key(*(_QWORD *)(a2 + 32));
if ( v5 == 0 || v4 == 0 || !v6 )
return 4294967294LL;
v7 = EC_POINT_cmp(v4, v5, v6, 0);
result = 1;
if ( v7 )
{
if ( v7 == 1 )
return 0;
else
return 4294967294LL;
}
return result;
}