//
// EC_KEY_oct2priv from 0xd90858 to 0xd908c0 (104 bytes)
//
// 2 xrefs:
// > d2i_ECPrivateKey @ 0xd8e6f0
// > ??> @ 0x86f40
//
// 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_oct2priv(__int64 a1)
{
_QWORD *v1; // x3
__int64 (*v2)(void); // x19
v1 = *(_QWORD **)(a1 + 24);
if ( !v1 )
return (unsigned int)v1;
v1 = (_QWORD *)*v1;
if ( !v1 )
return (unsigned int)v1;
v2 = (__int64 (*)(void))v1[40];
if ( v2 )
return v2();
ERR_put_error(16, 255, 66, "crypto/ec/ec_key.c", 590);
return 0;
}