//
// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x100100940 to 0x1001009ee (174 bytes)
//
// 3 xrefs:
// > PauseLayer::customSetup @ 0x1003c0871
// > PauseLayer::createStartPosPopupClosed @ 0x1003c225c
// > UILayer::handleAction @ 0x1004c4804
//
// 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 12:21:20 +0000
//
__int64 __fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(__int64 a1)
{
__int64 v1; // rbx
unsigned int v2; // r15d
__int64 v3; // rax
v1 = sub_1007FE900(a1);
if ( *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL) == 2 )
{
sub_1007FEF70(v1, *(_QWORD *)(a1 + 12440));
}
else if ( *(_BYTE *)(a1 + 12544) == 1 && (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 12440)) )
{
v2 = 0;
do
{
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 12440), v2);
if ( *(_BYTE *)(*(_QWORD *)(v3 + 1840) + 465LL) == 1 )
sub_1007FEBF0(v1, v3);
++v2;
}
while ( v2 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 12440)) );
}
return v1;
}