//
// PauseLayer::getQueuedStartPos from 0x1001c0298 to 0x1001c02fc (100 bytes)
//
// 3 xrefs:
// > PauseLayer::onRestartFull @ 0x1001bf7ac
// > PauseLayer::onResume @ 0x1001bf8a4
// > PauseLayer::onRestart @ 0x1001bfaa4
//
// 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:00:14 +0000
//
__int64 __fastcall PauseLayer::getQueuedStartPos(__int64 a1)
{
int v2; // w20
__int64 v3; // x0
if ( *(_BYTE *)(a1 + 616) == 1
&& (v2 = *(_DWORD *)(a1 + 600), v2 >= 1)
&& (v3 = *(_QWORD *)(a1 + 608)) != 0
&& v2 <= (unsigned int)sub_1002E757C(v3) )
{
return sub_1002E75A0(*(_QWORD *)(a1 + 608), (unsigned int)(*(_DWORD *)(a1 + 600) - 1));
}
else
{
return 0;
}
}