//
// sub_1003F3230 from 0x1003f3230 to 0x1003f3298 (104 bytes)
//
// 6 xrefs:
// > cocos2d::CCScheduler::unscheduleSelector @ 0x10023ef40
// > sub_1002E7648 @ 0x1002e7658
// > sub_1002E7664 @ 0x1002e7668
// > sub_1002E7684 @ 0x1002e76bc
// > cocos2d::CCActionManager::removeActionAtIndex @ 0x100390ae4
// > sub_1003F33F8 @ 0x1003f3430
//
// 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:04:31 +0000
//
int *__fastcall sub_1003F3230(int *result, unsigned int a2, int a3)
{
int *v4; // x20
int v5; // w8
unsigned int v6; // w8
v4 = result;
if ( a3 )
{
result = *(int **)(*((_QWORD *)result + 2) + 8LL * a2);
if ( result )
result = cocos2d::CCObject::release(result);
}
v5 = *v4 - 1;
*v4 = v5;
v6 = v5 - a2;
if ( v6 )
return (int *)memmove(
(void *)(*((_QWORD *)v4 + 2) + 8LL * a2),
(const void *)(*((_QWORD *)v4 + 2) + 8LL * (a2 + 1)),
8LL * v6);
return result;
}