//
// sub_82D274 from 0x82d274 to 0x82d2c4 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0xa38e38
// > ??> @ 0xa38e6c
//
// 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 sub_82D274(int a1, int *a2)
{
int v4; // r0
if ( a1 )
{
if ( a1 == 2 )
{
RSA_free(*a2);
*a2 = 0;
return 2;
}
else
{
return 1;
}
}
else
{
v4 = RSA_new();
*a2 = v4;
if ( v4 )
return 2;
else
return 0;
}
}