//
// cocos2d::CCDirector::pushScene from 0xad6c74 to 0xad6d08 (148 bytes)
//
// 36 xrefs:
// > GameManager::returnToLastScene @ 0x5f10e4
// > LevelListCell::onClick @ 0x60adc8
// > MapPackCell::onClick @ 0x60b958
// > CommentCell::onGoToLevel @ 0x60bb48
// > GJScoreCell::onViewProfile @ 0x60c064
// > CreatorLayer::onMapPacks @ 0x6ca46c
// > CreatorLayer::onMyLevels @ 0x6ca528
// > CreatorLayer::onSavedLevels @ 0x6ca608
// > CreatorLayer::onLeaderboards @ 0x6ca668
// > CreatorLayer::onOnlineLevels @ 0x6ca6c4
// > CreatorLayer::onGauntlets @ 0x6ca6f4
// > CreatorLayer::onFeaturedLevels @ 0x6cba14
// > CreatorLayer::onTopLists @ 0x6cba80
// > CreatorLayer::onFameLevels @ 0x6cbe0c
// > LevelSearchLayer::onMostDownloaded @ 0x6cf9f0
// > LevelSearchLayer::onMostLikes @ 0x6cfb14
// > LevelSearchLayer::onSuggested @ 0x6cfc38
// > LevelSearchLayer::onTrending @ 0x6cfd5c
// > LevelSearchLayer::onMagic @ 0x6cfe80
// > LevelSearchLayer::onMostRecent @ 0x6cffa4
// > LevelSearchLayer::onLatestStars @ 0x6d00c8
// > LevelSearchLayer::onFriends @ 0x6d01ec
// > LevelSearchLayer::onFollowed @ 0x6d0310
// > LevelSearchLayer::onStarAward @ 0x6d0434
// > LevelSearchLayer::onSearch @ 0x6d064c
// > LevelSearchLayer::onSearchUser @ 0x6d0964
// > LevelInfoLayer::onGarage @ 0x6d59bc
// > UploadPopup::onBack @ 0x6e3784
// > GameLevelManager::gotoLevelPage @ 0x707270
// > ProfilePage::onMyLevels @ 0x8f8da8
// > ProfilePage::onMyLevels @ 0x8f8e1c
// > ProfilePage::onMyLists @ 0x8f8f88
// > DailyLevelPage::onTheSafe @ 0x91283c
// > WorldSelectLayer::onGarage @ 0x95e448
// > cocos2d::CCDirector::runWithScene @ 0xad6d18
// > ??> @ 0xc9780
//
// 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
//
bool cocos2d::CCDirector::pushScene(cocos2d::CCDirector *a1, cocos2d::CCScene *a2)
{
cocos2d::CCArray *m_pobScenesStack; // x0
bool v6; // w0
if ( a1->m_bIsTransitioning )
return 0;
m_pobScenesStack = a1->m_pobScenesStack;
a1->m_bSendCleanupToScene = 0;
cocos2d::CCArray::addObject(m_pobScenesStack, (cocos2d::_ccArray *)a2, nullptr);
a1->m_pNextScene = a2;
if ( a2
&& _dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene,
0) )
{
v6 = 1;
}
else
{
cocos2d::CCDirector::willSwitchToScene(a1, a2);
v6 = 0;
}
a1->m_bIsTransitioning = v6;
return 1;
}