//
// sub_108F8A0 from 0x108f8a0 to 0x108f8e8 (72 bytes)
//
// 2 xrefs:
// > ??> @ 0x1552af8
// > ??> @ 0x1552b38
//
// 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:17 +0000
//
_BYTE **__fastcall sub_108F8A0(_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;
}