//
// PauseLayer::onRestartFull from 0x1001bf78c to 0x1001bf808 (124 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x1001be40c
//
// 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::onRestartFull(_BYTE *a1)
{
__int64 QueuedStartPos; // x20
__int64 v4; // x0
__int64 v5; // x0
if ( a1[616] == 1 )
{
QueuedStartPos = PauseLayer::getQueuedStartPos(a1);
if ( QueuedStartPos != *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(QueuedStartPos) + 544) + 12432LL) )
return PauseLayer::onResume(a1);
}
v4 = CCBlockLayer::decrementForcePrio((__int64)a1);
v5 = GameManager::sharedState(v4);
PlayLayer::resumeAndRestart(*(_BYTE **)(v5 + 544), 1);
return (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 536LL))(a1);
}