//
// PlayLayer::fullReset from 0x5d2528 to 0x5d2624 (252 bytes)
//
// 4 xrefs:
// > UILayer::handleKeypress @ 0x5c6f90
// > ??> @ 0x4e1c8
// > PlayLayer::delayedFullReset @ 0x5d0664
// > ??> @ 0x122a828
//
// 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 PlayLayer::fullReset(PlayLayer *a1)
{
cocos2d::CCDirector *v2; // x0
PlayerObject *m_player1; // x4
PlayerObject *m_player2; // x3
_BOOL4 m_isPracticeMode; // w2
cocos2d::CCLabelBMFont *m_attemptLabel; // x21
float v7; // s1
float x; // s0
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19
float v10; // [xsp+48h] [xbp+48h]
float v11; // [xsp+4Ch] [xbp+4Ch]
cocos2d::CCPoint v12; // [xsp+50h] [xbp+50h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v2);
m_player1 = a1->m_player1;
m_player2 = a1->m_player2;
m_isPracticeMode = a1->m_isPracticeMode;
a1->m_gameState.m_totalTime = 0.0;
a1->m_gameState.m_unkDouble3 = 0.0;
a1->m_gameState.m_levelTime = 0.0;
m_player1->m_totalTime = 0.0;
m_player2->m_totalTime = a1->m_gameState.m_totalTime;
a1->m_attempts = 0;
a1->m_jumps = 0;
a1->m_objectsDeactivated = 1;
a1->m_freezeStartCamera = 1;
if ( m_isPracticeMode )
PlayLayer::togglePracticeMode(a1, 0);
else
PlayLayer::resetLevelFromStart(a1);
m_attemptLabel = a1->m_attemptLabel;
v7 = a1->m_gameState.m_cameraPosition.y + (float)(v11 * 0.5);
x = a1->m_gameState.m_cameraPosition.x;
setPosition = m_attemptLabel->setPosition;
cocos2d::CCPoint::CCPoint(&v12, x + (float)(v10 * 0.5), v7 + 85.0);
setPosition(m_attemptLabel, &v12);
}