//
// EC_KEY_oct2priv from 0x100ebb8 to 0x100ec20 (104 bytes)
//
// 2 xrefs:
// > d2i_ECPrivateKey @ 0x100ca50
// > ??> @ 0xb3110
//
// 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_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;
}