//
// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x99d7f0 to 0x99d89c (172 bytes)
//
// 6 xrefs:
// > UILayer::handleAction @ 0x6f16dc
// > PauseLayer::createStartPosPopupClosed @ 0x7d4a34
// > PauseLayer::createStartPosPopupClosed @ 0x7d4a8c
// > PauseLayer::customSetup @ 0x7d8a30
// > PauseLayer::customSetup @ 0x7d934c
// > ??> @ 0xb5660
//
// 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:58:05 +0000
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(cocos2d::CCArray **this)
{
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
cocos2d::CCObject *v7; // x1
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this);
v3 = v2;
if ( *((_DWORD *)*(this + 242) + 285) == 2 )
{
cocos2d::CCArray::addObjectsFromArray(v2, *(this + 1555));
}
else
{
v4 = 0;
if ( *((_BYTE *)this + 12544) )
{
while ( 1 )
{
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(*(this + 1555));
v6 = v4++;
if ( v5 )
break;
while ( 1 )
{
v7 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*(this + 1555), v6);
if ( !*(_BYTE *)(*((_QWORD *)v7 + 230) + 465LL) )
break;
cocos2d::CCArray::addObject(v3, v7);
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(*(this + 1555));
v6 = v4++;
if ( v5 )
return v3;
}
}
}
}
return v3;
}