//
// PauseLayer::getQueuedStartPos from 0x1404d8f90 to 0x1404d8fee (94 bytes)
//
// 4 xrefs:
// > PauseLayer::onResume @ 0x1404dac62
// > PauseLayer::onRestart @ 0x1404dae9d
// > PauseLayer::onRestartFull @ 0x1404dafcd
// > ??> @ 0x14092990c
//
// 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 11:33:03 +0000
//
struct cocos2d::CCObject *__fastcall PauseLayer::getQueuedStartPos(__int64 a1)
{
int v2; // edi
cocos2d::CCArray *v3; // rcx
if ( *(_BYTE *)(a1 + 616)
&& (v2 = *(_DWORD *)(a1 + 600), v2 > 0)
&& (v3 = *(cocos2d::CCArray **)(a1 + 608)) != nullptr
&& v2 <= cocos2d::CCArray::count(v3) )
{
return cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 608), v2 - 1);
}
else
{
return nullptr;
}
}