//
// PauseLayer::onRestartFull from 0x1003c1130 to 0x1003c11e3 (179 bytes)
//
// 1 xrefs:
// > PauseLayer::customSetup @ 0x1003bfb6b
//
// 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 12:29:33 +0000
//
__int64 __fastcall PauseLayer::onRestartFull(__int64 a1, double a2)
{
int v3; // r14d
__int64 v4; // rdi
__int64 v6; // r14
__int64 v7; // rax
if ( *(_BYTE *)(a1 + 616) == 1 )
{
v3 = *(_DWORD *)(a1 + 600);
if ( v3 > 0 && (v4 = *(_QWORD *)(a1 + 608)) != 0 && v3 <= (unsigned int)sub_1007FEF90(v4) )
{
v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 608), (unsigned int)(*(_DWORD *)(a1 + 600) - 1));
if ( v6 != *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12432LL) )
return PauseLayer::onResume(a1);
}
else if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12432LL) )
{
return PauseLayer::onResume(a1);
}
}
CCBlockLayer::decrementForcePrio(a1);
v7 = GameManager::sharedState();
PlayLayer::resumeAndRestart(*(_BYTE **)(v7 + 544), 1, a2);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 536LL))(a1);
}