//
// cocos2d::CCDirector::pushScene from 0x100175f28 to 0x100175fd4 (172 bytes)
//
// 34 xrefs:
// > LevelInfoLayer::onGarage @ 0x100028eb4
// > LevelSearchLayer::onSearch @ 0x10005358c
// > LevelSearchLayer::onSearchUser @ 0x1000536cc
// > LevelSearchLayer::onMostDownloaded @ 0x1000538c0
// > LevelSearchLayer::onMostLikes @ 0x100053964
// > LevelSearchLayer::onSuggested @ 0x100053a08
// > LevelSearchLayer::onTrending @ 0x100053aac
// > LevelSearchLayer::onMostRecent @ 0x100053b50
// > LevelSearchLayer::onMagic @ 0x100053bf4
// > LevelSearchLayer::onLatestStars @ 0x100053c98
// > LevelSearchLayer::onFollowed @ 0x100053d3c
// > LevelSearchLayer::onFriends @ 0x100053de0
// > LevelSearchLayer::onStarAward @ 0x100053e84
// > GameLevelManager::gotoLevelPage @ 0x100099294
// > CreatorLayer::onSavedLevels @ 0x1000b5d34
// > CreatorLayer::onLeaderboards @ 0x1000b5d7c
// > CreatorLayer::onGauntlets @ 0x1000b61e4
// > CreatorLayer::onFeaturedLevels @ 0x1000b6230
// > CreatorLayer::onTopLists @ 0x1000b62ac
// > CreatorLayer::onMapPacks @ 0x1000b62f8
// > CreatorLayer::onOnlineLevels @ 0x1000b634c
// > CreatorLayer::onMyLevels @ 0x1000b6414
// > MapPackCell::onClick @ 0x10010f410
// > CommentCell::onGoToLevel @ 0x100110b7c
// > GJScoreCell::onViewProfile @ 0x100111180
// > LevelListCell::onClick @ 0x100112f04
// > cocos2d::CCDirector::runWithScene @ 0x100175f0c
// > ProfilePage::onMyLevels @ 0x10019b290
// > ProfilePage::onMyLevels @ 0x10019b338
// > ProfilePage::onMyLists @ 0x10019b3e0
// > ProfilePage::onMyLists @ 0x10019b4a4
// > DailyLevelPage::onTheSafe @ 0x1001b9b44
// > UploadPopup::onBack @ 0x100276a10
// > GameManager::returnToLastScene @ 0x10031d6ac
//
// 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 __fastcall cocos2d::CCDirector::pushScene(cocos2d::CCDirector *a1, cocos2d::CCScene *a2)
{
bool m_bIsTransitioning; // w21
__n128 v5; // q0
bool v6; // w8
cocos2d::CCSceneDelegate *m_pAppDelegate; // x0
cocos2d::CCSceneDelegate *m_pDelegate; // x0
m_bIsTransitioning = a1->m_bIsTransitioning;
if ( !m_bIsTransitioning )
{
a1->m_bSendCleanupToScene = 0;
v5 = sub_10024A2D0(a1->m_pobScenesStack, a2);
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
{
if ( !a1->m_bDontCallWillSwitch )
{
m_pAppDelegate = a1->m_pAppDelegate;
if ( m_pAppDelegate )
((void (__fastcall *)(cocos2d::CCSceneDelegate *, cocos2d::CCScene *, __n128))m_pAppDelegate->willSwitchToScene)(
m_pAppDelegate,
a2,
v5);
m_pDelegate = a2->m_pDelegate;
if ( m_pDelegate )
((void (__fastcall *)(cocos2d::CCSceneDelegate *, __n128))m_pDelegate->willSwitchToScene)(m_pDelegate, v5);
}
v6 = 0;
}
a1->m_bIsTransitioning = v6;
}
return !m_bIsTransitioning;
}