//
// EC_KEY_priv2oct from 0xd9073c to 0xd907a4 (104 bytes)
//
// 3 xrefs:
// > EC_KEY_priv2buf @ 0xd90998
// > EC_KEY_priv2buf @ 0xd909e4
// > ??> @ 0x8d060
//
// 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_priv2oct(__int64 a1)
{
_QWORD *v1; // x3
__int64 (*v2)(void); // x19
v1 = *(_QWORD **)(a1 + 24);
if ( !v1 )
return (__int64)v1;
v1 = (_QWORD *)*v1;
if ( !v1 )
return (__int64)v1;
v2 = (__int64 (*)(void))v1[39];
if ( v2 )
return v2();
ERR_put_error(16, 256, 66, "crypto/ec/ec_key.c", 555);
return 0;
}