//
// EC_KEY_key2buf from 0xd90660 to 0xd90694 (52 bytes)
//
// 6 xrefs:
// > sub_D8B4C0 @ 0xd8b6c8
// > sub_D8C8B0 @ 0xd8c908
// > sub_D8CA44 @ 0xd8caa4
// > EC_KEY_print @ 0xd8ccdc
// > i2d_ECPrivateKey @ 0xd8e9a8
// > ??> @ 0x374d0
//
// 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_KEY_key2buf(__int64 a1, unsigned int a2, __int64 a3, __int64 a4)
{
__int64 v5; // x1
__int64 v6; // x0
if ( a1 && (v5 = *(_QWORD *)(a1 + 32)) != 0 && (v6 = *(_QWORD *)(a1 + 24)) != 0 )
return EC_POINT_point2buf(v6, v5, a2, a3, a4);
else
return 0;
}