//
// sub_10008E590 from 0x10008e590 to 0x10008e5e0 (80 bytes)
//
// 8 xrefs:
// > sub_10008E05C @ 0x10008e06c
// > sub_1001BD830 @ 0x1001bd848
// > sub_1001BD8E4 @ 0x1001bd8f4
// > sub_1001BDA2C @ 0x1001bda5c
// > sub_1001E8174 @ 0x1001e818c
// > sub_1001E8220 @ 0x1001e8230
// > sub_1004118CC @ 0x1004118e4
// > sub_100411980 @ 0x100411990
//
// 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 10:58:22 +0000
//
void __fastcall sub_10008E590(__int64 a1, void **__p)
{
if ( *(_BYTE *)(a1 + 8) == 1 )
{
if ( *((char *)__p + 39) < 0 )
operator delete(__p[2]);
}
else if ( !__p )
{
return;
}
operator delete(__p);
}