//
// GJBaseGameLayer::processStartPosObjects from 0x99da90 to 0x99db0c (124 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x7078e4
// > ??> @ 0x66118
//
// 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
//
__int64 __fastcall GJBaseGameLayer::processStartPosObjects(cocos2d::CCArray **this)
{
__int64 result; // x0
unsigned int v3; // w19
unsigned int v4; // w1
StartPosObject *v5; // x1
GJBaseGameLayer::sortStartPosObjects(this);
result = *((unsigned int *)*(this + 242) + 285);
if ( (_DWORD)result == 2 )
{
result = cocos2d::CCArray::count(*(this + 1555));
v3 = result - 1;
if ( (int)result - 1 >= 0 )
{
while ( 1 )
{
v4 = v3--;
v5 = (StartPosObject *)cocos2d::CCArray::objectAtIndex(*(this + 1555), v4);
result = *(unsigned __int8 *)(*((_QWORD *)v5 + 230) + 464LL);
if ( !*(_BYTE *)(*((_QWORD *)v5 + 230) + 464LL) )
break;
if ( v3 == -1 )
return result;
}
return (__int64)GJBaseGameLayer::setActiveStartPosObject((GJBaseGameLayer *)this, v5);
}
}
return result;
}