//
// sub_A4102C from 0xa4102c to 0xa410c0 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0xc7ff98
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:13 +0000
//
int __fastcall sub_A4102C(_DWORD *a1, int a2)
{
int result; // r0
int v4; // r4
int v5; // [sp+8h] [bp-Ch] BYREF
int v6; // [sp+Ch] [bp-8h] BYREF
result = PKCS8_pkey_get0(nullptr, &v5, &v6, nullptr, a2);
if ( result )
{
v4 = d2i_RSAPrivateKey(0, &v5);
if ( v4 )
{
EVP_PKEY_assign(a1, 6, v4);
return 1;
}
else
{
ERR_put_error(4, 147, 4, (int)"crypto/rsa/rsa_ameth.c", 72);
return 0;
}
}
return result;
}