//
// sub_1003F2F04 from 0x1003f2f04 to 0x1003f2f38 (52 bytes)
//
// 2 xrefs:
// > sub_1002E7588 @ 0x1002e758c
// > cocos2d::CCActionManager::removeAction @ 0x100391400
//
// 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
//
__int64 __fastcall sub_1003F2F04(int *a1, __int64 a2)
{
int v2; // w9
__int64 result; // x0
__int64 v5; // x8
v2 = *a1;
if ( !*a1 )
return 0xFFFFFFFFLL;
result = 0;
v5 = *((_QWORD *)a1 + 2);
while ( *(_QWORD *)(v5 + 8 * result) != a2 )
{
if ( v2 == (_DWORD)++result )
return 0xFFFFFFFFLL;
}
return result;
}