//
// PlayLayer::fullReset from 0x1000bdfa0 to 0x1000be100 (352 bytes)
//
// 2 xrefs:
// > UILayer::handleKeypress @ 0x1004c9261
// > PlayLayer::delayedFullReset @ 0x1000bdf71
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall PlayLayer::fullReset(PlayLayer *a1)
{
GameManager *v1; // rax
bool GameVariable; // r15
GameManager *v3; // rax
FMODAudioEngine *v4; // rax
GameManager *v5; // rax
cocos2d::CCLabelBMFont *m_attemptLabel; // r14
_BYTE v7[8]; // [rsp+8h] [rbp-28h] BYREF
float v8[8]; // [rsp+10h] [rbp-20h] BYREF
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v8);
*(_OWORD *)&a1->m_gameState.m_totalTime = 0;
a1->m_gameState.m_unkDouble3 = 0.0;
a1->m_player1->m_totalTime = 0.0;
a1->m_player2->m_totalTime = 0.0;
a1->m_attempts = 0;
a1->m_jumps = 0;
a1->m_objectsDeactivated = 1;
a1->m_freezeStartCamera = 1;
if ( a1->m_isPracticeMode )
{
PlayLayer::togglePracticeMode(a1, 0);
}
else
{
v1 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v1, "0146");
v3 = GameManager::sharedState();
GameManager::setGameVariable(v3, "0146", 1);
((void (__fastcall *)(PlayLayer *))a1->removeAllCheckpoints)(a1);
v4 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v4, 1);
a1->m_freezeStartCamera = 1;
((void (__fastcall *)(PlayLayer *))a1->resetLevel)(a1);
v5 = GameManager::sharedState();
GameManager::setGameVariable(v5, "0146", GameVariable);
}
m_attemptLabel = a1->m_attemptLabel;
sub_10028CBE0(
v7,
(float)(v8[0] * 0.5) + a1->m_gameState.m_cameraPosition.x,
(float)((float)(0.5 * v8[1]) + a1->m_gameState.m_cameraPosition.y) + 85.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))m_attemptLabel->setPosition)(m_attemptLabel, v7);
}