//
// sub_100241668 from 0x100241668 to 0x1002416c4 (92 bytes)
//
// 1 xrefs:
// > sub_1002415EC @ 0x100241664
//
// 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_100241668(__int64 a1, int a2)
{
unsigned __int64 v2; // x8
int v4; // w20
v2 = *(_QWORD *)(a1 + 32);
if ( v2 < 0x80 )
a2 = 1;
if ( v2 < 0x100 )
v4 = a2;
else
v4 = 0;
if ( (v4 & 1) == 0 )
{
operator delete(**(void ***)(a1 + 8));
*(_QWORD *)(a1 + 8) += 8LL;
*(_QWORD *)(a1 + 32) -= 128LL;
}
return v4 ^ 1u;
}