//
// EC_POINT_point2buf from 0xd940d8 to 0xd941ac (212 bytes)
//
// 5 xrefs:
// > EC_GROUP_get_ecparameters @ 0xd8d5ac
// > EC_KEY_key2buf @ 0xd90688
// > EC_POINT_point2bn @ 0xe34d8c
// > EC_POINT_point2hex @ 0xe34f4c
// > ??> @ 0x88578
//
// 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
//
__int64 __fastcall EC_POINT_point2buf(__int64 a1, _QWORD *a2, __int64 a3, __int64 *a4)
{
__int64 v7; // x0
__int64 result; // x0
__int64 v9; // x21
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;
}