//
// PauseLayer::onResume from 0x1001bf890 to 0x1001bf94c (188 bytes)
//
// 7 xrefs:
// > PauseLayer::onRestartFull @ 0x1001bf7d4
// > PauseLayer::onPracticeMode @ 0x1001bf840
// > PauseLayer::onNormalMode @ 0x1001bf88c
// > PauseLayer::onRestart @ 0x1001bfacc
// > PauseLayer::handleAction @ 0x1001c124c
// > PauseLayer::keyDown @ 0x1001c130c
// > PauseLayer::customSetup @ 0x1001be4b0
//
// 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::onResume(_BYTE *a1)
{
__int64 QueuedStartPos; // x0
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x0
__int64 v6; // x0
__int64 result; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
QueuedStartPos = PauseLayer::getQueuedStartPos(a1);
if ( a1[616] == 1 )
{
v3 = QueuedStartPos;
v4 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(QueuedStartPos) + 544) + 12432LL);
v5 = CCBlockLayer::decrementForcePrio((__int64)a1);
v6 = GameManager::sharedState(v5);
PlayLayer::resume(*(_QWORD *)(v6 + 544));
result = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 536LL))(a1);
if ( v3 != v4 )
{
v8 = GameManager::sharedState(result);
return PlayLayer::switchToStartPosObject(*(_QWORD **)(v8 + 544), v3);
}
}
else
{
v9 = CCBlockLayer::decrementForcePrio((__int64)a1);
v10 = GameManager::sharedState(v9);
PlayLayer::resume(*(_QWORD *)(v10 + 544));
return (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 536LL))(a1);
}
return result;
}