//
// EC_KEY_key2buf from 0x9fe2e8 to 0x9fe338 (80 bytes)
//
// 6 xrefs:
// > sub_9F8980 @ 0x9f89dc
// > sub_9F9DA0 @ 0x9f9dfc
// > sub_9F9F64 @ 0x9f9fc4
// > EC_KEY_print @ 0x9fa21c
// > i2d_ECPrivateKey @ 0x9fc3e8
// > ??> @ 0x7ab6c
//
// 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:36 +0000
//
int __fastcall EC_KEY_key2buf(int result, int a2, int a3, int a4)
{
int v4; // lr
if ( result )
{
v4 = *(_DWORD *)(result + 16);
if ( v4 )
{
result = *(_DWORD *)(result + 12);
if ( result )
return EC_POINT_point2buf(result, v4, a2, a3, a4);
}
else
{
return 0;
}
}
return result;
}