//
// GJBaseGameLayer::sortStartPosObjects from 0x100281534 to 0x1002815b4 (128 bytes)
//
// 2 xrefs:
// > PlayLayer::addLiveStartPosObject @ 0x10014b10c
// > GJBaseGameLayer::processStartPosObjects @ 0x1002814d4
//
// 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
//
void __fastcall GJBaseGameLayer::sortStartPosObjects(__int64 a1)
{
__int64 v2; // x20
int v3; // w0
__int64 v4; // x21
__int64 v5; // x22
__int64 v6; // x0
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 12440)) >= 2 )
{
v2 = sub_100281448(*(_QWORD *)(a1 + 12440));
sub_1002E7674(*(_QWORD *)(a1 + 12440));
v3 = sub_1002E757C(v2);
v4 = (unsigned int)(v3 - 1);
if ( v3 - 1 >= 0 )
{
do
{
v5 = *(_QWORD *)(a1 + 12440);
v6 = sub_1002E75A0(v2, v4);
sub_1002E74E0(v5, v6);
v4 = (unsigned int)(v4 - 1);
}
while ( (_DWORD)v4 != -1 );
}
}
}