//
// sub_84A58C from 0x84a58c to 0x84a5f8 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xa391c4
//
// 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_84A58C(int a1, int ***a2)
{
int **v3; // r5
int *v4; // r4
if ( a1 == 3 )
{
EVP_PKEY_free((int)(*a2)[2]);
return 1;
}
else if ( a1 == 5 )
{
v3 = *a2;
v4 = (int *)(*a2 + 2);
EVP_PKEY_free(*v4);
ERR_set_mark();
if ( sub_84A468(v4, v3) == -1 )
{
return 0;
}
else
{
ERR_pop_to_mark();
return 1;
}
}
else
{
return 1;
}
}