//
// sub_A5F18C from 0xa5f18c to 0xa5f1f8 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xc80444
//
// 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:32 +0000
//
int __fastcall sub_A5F18C(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_A5F068(v4, v3) == -1 )
{
return 0;
}
else
{
ERR_pop_to_mark();
return 1;
}
}
else
{
return 1;
}
}