//
// LevelTools::moveTriggerObjectsToArray from 0x100502310 to 0x1005023b7 (167 bytes)
//
// 1 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x100502620
//
// 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 __fastcall LevelTools::moveTriggerObjectsToArray(cocos2d::CCArray *a1, cocos2d::CCDictionary *a2, int a3)
{
cocos2d::CCObject *v3; // rax
cocos2d::CCObject *v4; // r15
__int64 v5; // r12
__int64 v6; // rax
v3 = cocos2d::CCDictionary::objectForKey(a2, a3);
if ( v3 )
{
v4 = v3;
LABEL_3:
if ( (unsigned int)sub_100720070(v4) )
{
while ( (unsigned int)sub_100720070(v4) )
{
v5 = sub_1007200C0(v4, 0);
v6 = sub_1007200C0(v4, 0);
sub_10071FCD0(a1, v6);
sub_100720230(v4, 0, 1);
if ( *(_DWORD *)(v5 + 1028) == 2900 && *(_BYTE *)(v5 + 1856) == 1 )
{
v4 = cocos2d::CCDictionary::objectForKey(a2, *(int *)(v5 + 1860));
if ( v4 )
goto LABEL_3;
return;
}
}
}
}
}