//
// LevelTools::moveTriggerObjectsToArray from 0x100501040 to 0x1005010e7 (167 bytes)
//
// 1 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x100501350
//
// This function is hookable on this platform (idp: pc, 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:31:30 +0000
//
__int64 __fastcall LevelTools::moveTriggerObjectsToArray(__int64 a1, __int64 a2, int a3)
{
__int64 result; // rax
__int64 v4; // r15
__int64 v5; // r12
__int64 v6; // rax
result = cocos2d::CCDictionary::objectForKey_1(a2, a3);
if ( result )
{
v4 = result;
LABEL_3:
result = sub_1007FEF90(v4);
if ( (_DWORD)result )
{
while ( 1 )
{
result = sub_1007FEF90(v4);
if ( !(_DWORD)result )
break;
v5 = sub_1007FEFE0(v4, 0);
v6 = sub_1007FEFE0(v4, 0);
sub_1007FEBF0(a1, v6);
sub_1007FF150(v4, 0, 1);
if ( *(_DWORD *)(v5 + 1028) == 2900 && *(_BYTE *)(v5 + 1860) == 1 )
{
result = cocos2d::CCDictionary::objectForKey_1(a2, *(int *)(v5 + 1864));
v4 = result;
if ( result )
goto LABEL_3;
return result;
}
}
}
}
return result;
}