//
// EC_KEY_priv2oct from 0x100ea9c to 0x100eb04 (104 bytes)
//
// 3 xrefs:
// > EC_KEY_priv2buf @ 0x100ecf8
// > EC_KEY_priv2buf @ 0x100ed44
// > ??> @ 0xbabf8
//
// 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_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;
}