//
// PauseLayer::onRestart from 0x7d56f8 to 0x7d5778 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0xc20b0
// > PauseLayer::customSetup @ 0x7d84f4
// > ??> @ 0x1545aa8
//
// 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 12:54:20 +0000
//
__int64 __fastcall PauseLayer::onRestart(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
cocos2d::CCObject *v3; // x0
__int64 v4; // x0
GameManager *QueuedStartPos; // x20
if ( *((_BYTE *)this + 616) )
{
QueuedStartPos = (GameManager *)PauseLayer::getQueuedStartPos(this);
if ( QueuedStartPos != *(GameManager **)(*(_QWORD *)(GameManager::sharedState(QueuedStartPos) + 544) + 12432LL) )
return PauseLayer::onResume(this, a2);
}
v3 = CCBlockLayer::decrementForcePrio((cocos2d::CCObject *)this);
v4 = GameManager::sharedState(v3);
PlayLayer::resumeAndRestart(*(UILayer ***)(v4 + 544), 0);
return (*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 67))(this);
}