//
// EC_POINT_point2buf from 0x7ed524 to 0x7ed5c8 (164 bytes)
//
// 5 xrefs:
// > EC_GROUP_get_ecparameters @ 0x7e5fe8
// > EC_KEY_key2buf @ 0x7e9724
// > EC_POINT_point2bn @ 0x88b44c
// > EC_POINT_point2hex @ 0x88b5ec
// > ??> @ 0x6140c
//
// 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 EC_POINT_point2buf(int a1, _DWORD *a2, int a3, int *a4)
{
int v7; // r0
int result; // r0
int v9; // r9
v7 = EC_POINT_point2oct(a1, a2);
if ( !v7 )
return 0;
v9 = CRYPTO_malloc(v7, "crypto/ec/ec_oct.c", 155);
if ( !v9 )
return 0;
result = EC_POINT_point2oct(a1, a2);
if ( result )
{
*a4 = v9;
}
else
{
CRYPTO_free(v9, "crypto/ec/ec_oct.c", 160);
return 0;
}
return result;
}