//
// GJBaseGameLayer::processStartPosObjects from 0x58ecf0 to 0x58ed3e (78 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x409fb2
//
// 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
//
StartPosObject **__fastcall GJBaseGameLayer::processStartPosObjects(cocos2d::CCArray **this)
{
StartPosObject **result; // r0
signed int i; // r4
result = (StartPosObject **)GJBaseGameLayer::sortStartPosObjects(this);
if ( *((_DWORD *)*(this + 352) + 238) == 2 )
{
result = (StartPosObject **)cocos2d::CCArray::count(*(this + 2681));
for ( i = (signed int)result - 1; i >= 0; --i )
{
result = (StartPosObject **)cocos2d::CCArray::objectAtIndex(*(this + 2681), i);
if ( !*((_BYTE *)result[412] + 384) )
return GJBaseGameLayer::setActiveStartPosObject(this, (StartPosObject *)result);
}
}
return result;
}