//
// EC_POINT_oct2point from 0xa02018 to 0xa02118 (256 bytes)
//
// 5 xrefs:
// > EC_GROUP_new_from_ecparameters @ 0x9fb99c
// > EC_KEY_oct2key @ 0x9fe378
// > EC_POINT_bn2point @ 0xaa0110
// > EC_POINT_bn2point @ 0xaa0160
// > ??> @ 0x7af3c
//
// 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:38 +0000
//
int __fastcall EC_POINT_oct2point(int a1, _DWORD *a2)
{
_DWORD *v2; // r12
v2 = *(_DWORD **)a1;
if ( *(_DWORD *)(*(_DWORD *)a1 + 88) )
{
if ( v2 != (_DWORD *)*a2 )
goto LABEL_3;
if ( (*v2 & 1) == 0 )
return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 88))(a1);
}
else
{
if ( (*v2 & 1) == 0 )
{
ERR_put_error(16, 122, 66, "crypto/ec/ec_oct.c", 123);
return 0;
}
if ( v2 != (_DWORD *)*a2 )
{
LABEL_3:
ERR_put_error(16, 122, 101, "crypto/ec/ec_oct.c", 127);
return 0;
}
}
if ( v2[1] == 406 )
return ec_GFp_simple_oct2point();
else
return ec_GF2m_simple_oct2point();
}