//
// UploadPopup::onReturnToLevel from 0x6e3828 to 0x6e38a8 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0xbcc58
// > UploadPopup::levelUploadFinished @ 0x6e3bfc
// > ??> @ 0x122e890
//
// 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 UploadPopup::onReturnToLevel(UploadPopup *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x20
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x0
GameManager *v6; // x0
GameLevelManager *v7; // x0
a1->setKeypadEnabled(a1, 0);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = EditLevelLayer::scene(a1->m_level);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
v6 = GameManager::sharedState();
if ( v6->m_playerUserID.random == v6->m_playerUserID.seed && !GameManager::sharedState()->m_scoreValid )
{
v7 = GameLevelManager::sharedState();
GameLevelManager::updateUserScore(v7);
}
}