//
// LevelTools::moveTriggerObjectsToArray from 0x72c834 to 0x72c8e8 (180 bytes)
//
// 2 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x72cb38
// > ??> @ 0x57d60
//
// 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 12:52:34 +0000
//
cocos2d::CCArray *__fastcall LevelTools::moveTriggerObjectsToArray(
LevelTools *this,
cocos2d::CCArray *a2,
cocos2d::CCDictionary *a3)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v6; // x19
__int64 v7; // x20
cocos2d::CCObject *v8; // x0
result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a2, (int)a3);
v6 = result;
if ( result )
{
LABEL_2:
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( (_DWORD)result )
{
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v6);
if ( !(_DWORD)result )
break;
v7 = cocos2d::CCArray::objectAtIndex(v6, 0);
v8 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v6, 0);
cocos2d::CCArray::addObject(this, v8);
cocos2d::CCArray::removeObjectAtIndex(v6, 0, 1);
if ( *(_DWORD *)(v7 + 1028) == 2900 && *(_BYTE *)(v7 + 1860) )
{
result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a2, *(int *)(v7 + 1864));
v6 = result;
if ( result )
goto LABEL_2;
return result;
}
}
}
}
return result;
}