//
// sub_1001AC994 from 0x1001ac994 to 0x1001aca10 (124 bytes)
//
// 1 xrefs:
// > cocos2d::CCSet::removeObject @ 0x1001ac55c
//
// 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_1001AC994(_QWORD *a1, unsigned __int64 *a2)
{
_QWORD *v2; // x10
unsigned __int64 v3; // x9
_QWORD *v4; // x19
unsigned __int64 v5; // x11
bool v6; // cf
_BOOL4 v7; // w11
v2 = (_QWORD *)a1[1];
if ( !v2 )
return 0;
v3 = *a2;
v4 = a1 + 1;
do
{
v5 = v2[4];
v6 = v5 >= v3;
v7 = v5 < v3;
if ( v6 )
v4 = v2;
v2 = (_QWORD *)v2[v7];
}
while ( v2 );
if ( v4 == a1 + 1 || v3 < v4[4] )
return 0;
sub_10001BDC0(a1, v4);
operator delete(v4);
return 1;
}