//
// cocos2d::CCDirector::pushScene from 0xd498b4 to 0xd49948 (148 bytes)
//
// 39 xrefs:
// > GameManager::returnToLastScene @ 0x71e400
// > CommentCell::onGoToLevel @ 0x735d94
// > LevelListCell::onClick @ 0x736278
// > GJScoreCell::onViewProfile @ 0x73b708
// > GJNotificationCell::onViewTarget @ 0x73b81c
// > MapPackCell::onClick @ 0x73df88
// > CreatorLayer::onMapPacks @ 0x7db54c
// > CreatorLayer::onMyLevels @ 0x7db5fc
// > CreatorLayer::onSavedLevels @ 0x7db6f8
// > CreatorLayer::onLeaderboards @ 0x7db76c
// > CreatorLayer::onOnlineLevels @ 0x7db7c8
// > CreatorLayer::onGauntlets @ 0x7db8dc
// > CreatorLayer::onFeaturedLevels @ 0x7dba80
// > CreatorLayer::onTopLists @ 0x7dbaec
// > CreatorLayer::onFameLevels @ 0x7dbc70
// > LevelSearchLayer::onMostDownloaded @ 0x7e023c
// > LevelSearchLayer::onMostLikes @ 0x7e02f8
// > LevelSearchLayer::onHyped @ 0x7e03b4
// > LevelSearchLayer::onTrending @ 0x7e0470
// > LevelSearchLayer::onMagic @ 0x7e052c
// > LevelSearchLayer::onMostRecent @ 0x7e05e8
// > LevelSearchLayer::onLatestStars @ 0x7e06a4
// > LevelSearchLayer::onFriends @ 0x7e0760
// > LevelSearchLayer::onFollowed @ 0x7e081c
// > LevelSearchLayer::onStarAward @ 0x7e08d8
// > LevelSearchLayer::onSearch @ 0x7e4290
// > LevelSearchLayer::onSearchUser @ 0x7e4420
// > LevelInfoLayer::onGarage @ 0x7e5598
// > UploadPopup::onBack @ 0x7f22e8
// > GameLevelManager::gotoLevelPage @ 0x81a4dc
// > ProfilePage::onMyLevels @ 0xa54f94
// > ProfilePage::onMyLevels @ 0xa54fd0
// > ProfilePage::onMyLists @ 0xa55120
// > DailyLevelPage::onTheSafe @ 0xa6ccac
// > WorldSelectLayer::onGarage @ 0xaa5cc4
// > AccountReviewPopup::jumpTo @ 0xc40724
// > AccountReviewPopup::onJumpRow @ 0xc4ebfc
// > cocos2d::CCDirector::runWithScene @ 0xd49958
// > ??> @ 0x105ec8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:37 +0000
//
__int64 __fastcall cocos2d::CCDirector::pushScene(cocos2d::CCDirector *this, cocos2d::CCScene *a2)
{
cocos2d::CCArray *v5; // x0
char v6; // w0
if ( *((_BYTE *)this + 176) )
return 0;
v5 = *((cocos2d::CCArray **)this + 37);
*((_BYTE *)this + 288) = 0;
cocos2d::CCArray::addObject(v5, a2);
*((_QWORD *)this + 35) = 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((__int64)this, (__int64)a2);
v6 = 0;
}
*((_BYTE *)this + 176) = v6;
return 1;
}