//
// EC_KEY_priv2oct from 0x7e97e8 to 0x7e984c (100 bytes)
//
// 3 xrefs:
// > EC_KEY_priv2buf @ 0x7e9a48
// > EC_KEY_priv2buf @ 0x7e9a84
// > ??> @ 0x6182c
//
// 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
//
int __fastcall EC_KEY_priv2oct(int a1)
{
int *v1; // r3
int v2; // r3
int (*v3)(void); // r3
v1 = *(int **)(a1 + 12);
if ( !v1 )
return 0;
v2 = *v1;
if ( !v2 )
return 0;
v3 = *(int (**)(void))(v2 + 160);
if ( v3 )
return v3();
ERR_put_error(16, 256, 66, "crypto/ec/ec_key.c", 555);
return 0;
}