//
// sub_100241774 from 0x100241774 to 0x1002417f0 (124 bytes)
//
// 1 xrefs:
// > cocos2d::CCSet::removeObject @ 0x1002412d8
//
// 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:01:24 +0000
//
__int64 __fastcall sub_100241774(_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_10001C814(a1, v4);
operator delete(v4);
return 1;
}