//
// LevelTools::moveTriggerObjectsToArray from 0x14032d5e0 to 0x14032d6a2 (194 bytes)
//
// 4 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x14032d8d0
// > ??> @ 0x140693ab4
// > ??> @ 0x140693ac4
// > ??> @ 0x1406d4eb0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LevelTools::moveTriggerObjectsToArray(cocos2d::CCArray *a1, cocos2d::CCDictionary *a2, int a3)
{
cocos2d::CCArray *v5; // rbx
struct cocos2d::CCObject *v6; // rdi
struct cocos2d::CCObject *v7; // rax
v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a2, a3);
if ( v5 )
{
LABEL_2:
if ( cocos2d::CCArray::count(v5) )
{
while ( cocos2d::CCArray::count(v5) )
{
v6 = cocos2d::CCArray::objectAtIndex(v5, 0);
v7 = cocos2d::CCArray::objectAtIndex(v5, 0);
cocos2d::CCArray::addObject(a1, v7);
cocos2d::CCArray::removeObjectAtIndex(v5, 0, 1);
if ( v6[18].m_eObjType == 2900 && LOBYTE(v6[33].m_eObjType) )
{
v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a2, v6[33].m_uIndexInArray);
if ( v5 )
goto LABEL_2;
return;
}
}
}
}
}