//
// PauseLayer::onEdit from 0x100143584 to 0x100143660 (220 bytes)
//
// 2 xrefs:
// > PauseLayer::onTryEdit @ 0x10014324c
// > PauseLayer::FLAlert_Clicked @ 0x1001437dc
//
// 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 PauseLayer::onEdit(PauseLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
GameManager *v7; // x0
GameManager *v8; // x0
cocos2d::CCDelayTime *v9; // x20
cocos2d::CCAction *v10; // x1
cocos2d::SEL_CallFunc v11; // 0:x1.16
if ( GameManager::sharedState()->m_playLayer->m_level->m_levelType == Editor
|| (v3 = GameManager::sharedState(), v3->m_hasRP.random > v3->m_hasRP.seed) )
{
v4 = cocos2d::CCDirector::sharedDirector();
*(_DWORD *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v4->getScheduler)(v4) + 56) = 1065353216;
v5 = GameManager::sharedState();
PlayLayer::stopRecording(v5->m_playLayer);
v6 = GameManager::sharedState();
cocos2d::CCNode::stopAllActions(v6->m_playLayer);
v7 = GameManager::sharedState();
cocos2d::CCNode::unscheduleAllSelectors(v7->m_playLayer);
v8 = GameManager::sharedState();
GJBaseGameLayer::resetAudio(v8->m_playLayer);
v9 = cocos2d::CCDelayTime::create(0.0);
v11.ptr = (void (*)(void))PauseLayer::goEdit;
v11.adj = 0;
cocos2d::CCCallFunc::create(a1, v11);
v10 = (cocos2d::CCAction *)sub_10018A494(v9);
cocos2d::CCNode::runAction(a1, v10);
}
}