//
// EC_KEY_key2buf from 0x100e9c0 to 0x100e9f4 (52 bytes)
//
// 6 xrefs:
// > sub_1009820 @ 0x1009a28
// > sub_100AC10 @ 0x100ac68
// > sub_100ADA4 @ 0x100ae04
// > EC_KEY_print @ 0x100b03c
// > i2d_ECPrivateKey @ 0x100cd08
// > ??> @ 0x50d10
//
// 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:01 +0000
//
__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;
}