//
// cocos2d::CCDirector::pushScene from 0x5c362c to 0x5c367a (78 bytes)
//
// 35 xrefs:
// > GameManager::returnToLastScene @ 0x32461e
// > MapPackCell::onClick @ 0x32f33c
// > CommentCell::onGoToLevel @ 0x32f3cc
// > GJScoreCell::onViewProfile @ 0x32f802
// > LevelListCell::onClick @ 0x3303a8
// > CreatorLayer::onMapPacks @ 0x3aa7b4
// > CreatorLayer::onMyLevels @ 0x3aa850
// > CreatorLayer::onSavedLevels @ 0x3aa8e2
// > CreatorLayer::onLeaderboards @ 0x3aa922
// > CreatorLayer::onOnlineLevels @ 0x3aa95e
// > CreatorLayer::onGauntlets @ 0x3aa97e
// > CreatorLayer::onFeaturedLevels @ 0x3ab040
// > CreatorLayer::onTopLists @ 0x3ab080
// > CreatorLayer::onFameLevels @ 0x3ab1f4
// > LevelSearchLayer::onMostDownloaded @ 0x3ad12a
// > LevelSearchLayer::onMostLikes @ 0x3ad19e
// > LevelSearchLayer::onSuggested @ 0x3ad212
// > LevelSearchLayer::onTrending @ 0x3ad286
// > LevelSearchLayer::onMagic @ 0x3ad2fa
// > LevelSearchLayer::onMostRecent @ 0x3ad36e
// > LevelSearchLayer::onLatestStars @ 0x3ad3e2
// > LevelSearchLayer::onFriends @ 0x3ad456
// > LevelSearchLayer::onFollowed @ 0x3ad4ca
// > LevelSearchLayer::onStarAward @ 0x3ad53e
// > LevelSearchLayer::onSearch @ 0x3ad5f6
// > LevelSearchLayer::onSearchUser @ 0x3ad6b0
// > LevelInfoLayer::onGarage @ 0x3b172c
// > UploadPopup::onBack @ 0x3b886a
// > GameLevelManager::gotoLevelPage @ 0x3c723a
// > ProfilePage::onMyLevels @ 0x4c46f8
// > ProfilePage::onMyLevels @ 0x4c478e
// > ProfilePage::onMyLists @ 0x4c4890
// > DailyLevelPage::onTheSafe @ 0x4d3b0c
// > WorldSelectLayer::onGarage @ 0x4fcc70
// > cocos2d::CCDirector::runWithScene @ 0x5c3688
//
// 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::CCObject *v2; // r2
_BOOL4 m_bIsTransitioning; // r6
bool v6; // r3
m_bIsTransitioning = a1->m_bIsTransitioning;
if ( a1->m_bIsTransitioning )
return 0;
a1->m_bSendCleanupToScene = m_bIsTransitioning;
cocos2d::CCArray::addObject(a1->m_pobScenesStack, (cocos2d::_ccArray *)a2, v2);
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,
m_bIsTransitioning) )
{
v6 = 1;
}
else
{
cocos2d::CCDirector::willSwitchToScene(a1, a2);
v6 = 0;
}
a1->m_bIsTransitioning = v6;
return 1;
}