//
// LevelTools::moveTriggerObjectsToArray from 0x41f4f8 to 0x41f55c (100 bytes)
//
// 1 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x41f64e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:00 +0000
//
cocos2d::CCArray *__fastcall LevelTools::moveTriggerObjectsToArray(
LevelTools *this,
cocos2d::CCArray *a2,
cocos2d::CCDictionary *a3,
int a4)
{
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v7; // r4
int v8; // r5
cocos2d::CCObject *v9; // r0
LABEL_1:
result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a2, (int)a3);
v7 = result;
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( result )
{
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v7);
if ( !result )
break;
v8 = cocos2d::CCArray::objectAtIndex(v7, 0);
v9 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v7, 0);
cocos2d::CCArray::addObject(this, v9);
cocos2d::CCArray::removeObjectAtIndex(v7, 0, 1);
if ( *(_DWORD *)(v8 + 892) == 2900 && *(_BYTE *)(v8 + 1668) )
{
a3 = *(cocos2d::CCDictionary **)(v8 + 1672);
goto LABEL_1;
}
}
}
}
return result;
}