//
// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x1403190f0 to 0x1403191b1 (193 bytes)
//
// 6 xrefs:
// > PauseLayer::customSetup @ 0x1404d86c1
// > PauseLayer::createStartPosPopupClosed @ 0x1404d9370
// > UILayer::handleAction @ 0x140672924
// > ??> @ 0x1408b4fb8
// > ??> @ 0x1408b4fc8
// > ??> @ 0x14091eac4
//
// 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 11:30:19 +0000
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(__int64 a1)
{
cocos2d::CCArray *result; // rax
cocos2d::CCArray *v3; // rsi
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
result = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
v3 = result;
if ( *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 1220LL) == 2 )
{
cocos2d::CCArray::addObjectsFromArray(result, *(struct cocos2d::CCArray **)(a1 + 12920));
return v3;
}
else if ( *(_BYTE *)(a1 + 13024) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 12920)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 12920), i);
if ( *(_BYTE *)(*((_QWORD *)v5 + 232) + 473LL) )
cocos2d::CCArray::addObject(v3, v5);
}
return v3;
}
return result;
}