//
// sub_1002DE6BC from 0x1002de6bc to 0x1002de718 (92 bytes)
//
// 1 xrefs:
// > sub_1002DE640 @ 0x1002de6b8
//
// 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 11:02:46 +0000
//
__int64 __fastcall sub_1002DE6BC(__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;
}