//
// EC_POINT_point2buf from 0x1012438 to 0x101250c (212 bytes)
//
// 5 xrefs:
// > EC_GROUP_get_ecparameters @ 0x100b90c
// > EC_KEY_key2buf @ 0x100e9e8
// > EC_POINT_point2bn @ 0x10b308c
// > EC_POINT_point2hex @ 0x10b324c
// > ??> @ 0xb4d00
//
// 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:16:03 +0000
//
__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;
}