//
// sub_DF1EF0 from 0xdf1ef0 to 0xdf1f74 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x1130fd8
//
// 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
//
__int64 __fastcall sub_DF1EF0(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_DF1DE0(v4, v5) == -1;
result = 0;
if ( !v2 )
{
ERR_pop_to_mark();
return 1;
}
}
}
return result;
}