//
// PauseLayer::onRestart from 0x48ee5c to 0x48eeae (82 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:36 +0000
//
void __fastcall PauseLayer::onRestart(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
GameManager *QueuedStartPos; // r6
cocos2d::CCObject *v5; // r0
int v6; // r0
if ( *((_BYTE *)this + 476)
&& (QueuedStartPos = (GameManager *)PauseLayer::getQueuedStartPos(this),
QueuedStartPos != *(GameManager **)(*(_DWORD *)(GameManager::sharedState(QueuedStartPos) + 404) + 10720)) )
{
PauseLayer::onResume(this, a2);
}
else
{
v5 = CCBlockLayer::decrementForcePrio((cocos2d::CCObject *)this);
v6 = GameManager::sharedState(v5);
PlayLayer::resumeAndRestart(*(float *)(v6 + 404), 0);
(*((void (__fastcall **)(cocos2d::CCArray **))*this + 67))(this);
}
}