//
// GJBaseGameLayer::processStartPosObjects from 0x1002814c4 to 0x100281534 (112 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10013f520
//
// 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 11:01:55 +0000
//
_DWORD *__fastcall GJBaseGameLayer::processStartPosObjects(__int64 a1)
{
_DWORD *result; // x0
__int64 v3; // x20
result = (_DWORD *)GJBaseGameLayer::sortStartPosObjects(a1);
if ( *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL) == 2 )
{
result = (_DWORD *)sub_1002E757C(*(_QWORD *)(a1 + 12440));
v3 = (unsigned int)((_DWORD)result - 1);
while ( (v3 & 0x80000000) == 0 )
{
result = (_DWORD *)sub_1002E75A0(*(_QWORD *)(a1 + 12440), v3);
v3 = (unsigned int)(v3 - 1);
if ( (*(_BYTE *)(*((_QWORD *)result + 230) + 464LL) & 1) == 0 )
return GJBaseGameLayer::setActiveStartPosObject(a1, (__int64)result);
}
}
return result;
}