//
// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x58eb84 to 0x58ebe2 (94 bytes)
//
// 3 xrefs:
// > UILayer::handleAction @ 0x3fe86c
// > PauseLayer::createStartPosPopupClosed @ 0x48f9f6
// > PauseLayer::customSetup @ 0x491548
//
// 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:53:04 +0000
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(cocos2d::CCArray **this)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCArray *v3; // r6
unsigned int v4; // r5
cocos2d::CCArray **v5; // r4
cocos2d::CCObject *v6; // r1
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this);
v3 = v2;
if ( *((_DWORD *)*(this + 352) + 238) == 2 )
{
cocos2d::CCArray::addObjectsFromArray(v2, *(this + 2681));
}
else if ( *((_BYTE *)this + 10784) )
{
v4 = 0;
v5 = this + 2681;
while ( v4 < cocos2d::CCArray::count(*v5) )
{
v6 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*v5, v4);
if ( *(_BYTE *)(*((_DWORD *)v6 + 412) + 385) )
cocos2d::CCArray::addObject(v3, v6);
++v4;
}
}
return v3;
}