//
// sub_E115A0 from 0xe115a0 to 0xe115e8 (72 bytes)
//
// 2 xrefs:
// > ??> @ 0x1239818
// > ??> @ 0x1239858
//
// 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
//
_BYTE **__fastcall sub_E115A0(_BYTE **result, __int64 a2)
{
_BYTE *v2; // x2
_QWORD *v3; // x19
v2 = *result;
if ( *result )
{
v3 = result;
if ( (*(_QWORD *)(a2 + 40) & 1) != 0 )
result = (_BYTE **)BN_clear_free(v2);
else
result = (_BYTE **)BN_free((__int64)v2);
*v3 = 0;
}
return result;
}