//
// sub_7F5514 from 0x7f5514 to 0x7f560c (248 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30f90
//
// 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 sub_7F5514(int a1, int a2, _DWORD *a3)
{
int v3; // r3
int v4; // r12
int v5; // r3
int v6; // r4
int v7; // r3
v3 = *(_DWORD *)(a1 + 8);
if ( v3 && (v4 = *(_DWORD *)(a1 + 12)) != 0 )
{
v5 = *(_DWORD *)(v3 + 20);
v6 = *(_DWORD *)(v4 + 20);
if ( v5 && (v7 = *(_DWORD *)(v5 + 32)) != 0 )
{
if ( v6 )
{
*a3 = 32;
return !a2 || X25519(a2, v7, v6) != 0;
}
else
{
ERR_put_error(16, 269, 133, "crypto/ec/ecx_meth.c", 348);
return 0;
}
}
else
{
ERR_put_error(16, 269, 123, "crypto/ec/ecx_meth.c", 344);
return 0;
}
}
else
{
ERR_put_error(16, 269, 140, "crypto/ec/ecx_meth.c", 338);
return 0;
}
}