//
// PlayLayer::fullReset from 0x3143a8 to 0x314474 (204 bytes)
//
// 1 xrefs:
// > UILayer::handleKeypress @ 0x30d672
//
// 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; // r0
double *p_m_totalTime; // r1
cocos2d::CCLabelBMFont *m_attemptLabel; // r6
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCSize v6; // [sp+4h] [bp-18h] BYREF
cocos2d::CCPoint v7; // [sp+Ch] [bp-10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v6, v2);
p_m_totalTime = &a1->m_player1->m_totalTime;
a1->m_gameState.m_totalTime = 0.0;
a1->m_gameState.m_unkDouble3 = 0.0;
a1->m_gameState.m_levelTime = 0.0;
*p_m_totalTime = 0.0;
a1->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 ( a1->m_isPracticeMode )
PlayLayer::togglePracticeMode(a1, 0);
else
PlayLayer::resetLevelFromStart(a1);
m_attemptLabel = a1->m_attemptLabel;
setPosition = m_attemptLabel->setPosition;
cocos2d::CCPoint::CCPoint(
&v7,
a1->m_gameState.m_cameraPosition.x + (float)(v6.width * 0.5),
(float)(a1->m_gameState.m_cameraPosition.y + (float)(v6.height * 0.5)) + 85.0);
setPosition(m_attemptLabel, &v7);
}