//
// sub_10506B4 from 0x10506b4 to 0x105074c (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x140dc78
//
// 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:38 +0000
//
__int64 __fastcall sub_10506B4(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x0
int v5; // [xsp+24h] [xbp+24h] BYREF
char v6; // [xsp+28h] [xbp+28h] BYREF
result = X509_PUBKEY_get0_param(0, &v6, &v5, 0, a2);
if ( (_DWORD)result )
{
v4 = d2i_RSAPublicKey(0, &v6, v5);
if ( v4 )
{
EVP_PKEY_assign(a1, 6u, v4);
return 1;
}
else
{
ERR_put_error(4, 139, 4, (__int64)"crypto/rsa/rsa_ameth.c", 51);
return 0;
}
}
return result;
}