//
// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x1002812c8 to 0x100281374 (172 bytes)
//
// 3 xrefs:
// > UILayer::handleAction @ 0x100052390
// > PauseLayer::customSetup @ 0x1001bef30
// > PauseLayer::createStartPosPopupClosed @ 0x1001c0514
//
// 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
//
__int64 __fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x21
__int64 v5; // x0
v2 = sub_1002E736C(a1);
v3 = v2;
if ( *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL) == 2 )
{
sub_1002E7570(v2, *(_QWORD *)(a1 + 12440));
}
else if ( *(_BYTE *)(a1 + 12544) == 1 && (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 12440)) )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 12440), v4);
if ( *(_BYTE *)(*(_QWORD *)(v5 + 1840) + 465LL) == 1 )
sub_1002E74E0(v3, v5);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 12440)) );
}
return v3;
}