//
// sub_10512D4 from 0x10512d4 to 0x1051350 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x140dd20
//
// 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:39 +0000
//
__int64 __fastcall sub_10512D4(__int64 *a1, __int64 a2, __int64 a3, __int64 *a4, __int64 a5, __int64 a6)
{
if ( (unsigned int)OBJ_obj2nid(*a4) == 912 )
{
if ( (int)sub_1050F58(a1, nullptr, a4, a6) <= 0 )
return 0xFFFFFFFFLL;
else
return 2;
}
else
{
ERR_put_error(4, 148, 155, (__int64)"crypto/rsa/rsa_ameth.c", 607);
return 0xFFFFFFFFLL;
}
}