//
// sub_1070230 from 0x1070230 to 0x10702b4 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x140e568
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:00 +0000
//
__int64 __fastcall sub_1070230(int a1, __int64 ***a2)
{
bool v2; // zf
__int64 result; // x0
__int64 *v4; // x19
__int64 **v5; // [xsp+28h] [xbp+28h]
if ( a1 == 3 )
{
EVP_PKEY_free((__int64)(*a2)[2]);
return 1;
}
else
{
v2 = a1 == 5;
result = 1;
if ( v2 )
{
v5 = *a2;
v4 = (__int64 *)(*a2 + 2);
EVP_PKEY_free(*v4);
ERR_set_mark();
v2 = (unsigned int)sub_1070120(v4, v5) == -1;
result = 0;
if ( !v2 )
{
ERR_pop_to_mark();
return 1;
}
}
}
return result;
}