//
// sub_A40748 from 0xa40748 to 0xa40810 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0xc7ff9c
//
// 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_A40748(int a1, int a2)
{
int v3; // r6
char **v4; // r0
v3 = i2d_RSAPrivateKey(*(_DWORD *)(a2 + 20));
if ( v3 <= 0 )
{
ERR_put_error(4, 138, 65, (int)"crypto/rsa/rsa_ameth.c", 91);
return 0;
}
else
{
v4 = OBJ_nid2obj(6u);
if ( PKCS8_pkey_set0(a1, (int)v4, 0, 5, 0, 0, v3) )
{
return 1;
}
else
{
ERR_put_error(4, 138, 65, (int)"crypto/rsa/rsa_ameth.c", 97);
return 0;
}
}
}