//
// cocos2d::CCDirector::pushScene from 0x7ca8dc to 0x7ca92a (78 bytes)
//
// 38 xrefs:
// > GameManager::returnToLastScene @ 0x4169a2
// > LevelListCell::onClick @ 0x424976
// > CommentCell::onGoToLevel @ 0x427254
// > GJScoreCell::onViewProfile @ 0x427ff2
// > GJNotificationCell::onViewTarget @ 0x4280c8
// > MapPackCell::onClick @ 0x42acb6
// > CreatorLayer::onMapPacks @ 0x49344c
// > CreatorLayer::onMyLevels @ 0x4934f2
// > CreatorLayer::onSavedLevels @ 0x493594
// > CreatorLayer::onLeaderboards @ 0x4935d6
// > CreatorLayer::onOnlineLevels @ 0x493612
// > CreatorLayer::onGauntlets @ 0x49365a
// > CreatorLayer::onFeaturedLevels @ 0x4937dc
// > CreatorLayer::onTopLists @ 0x49381c
// > CreatorLayer::onFameLevels @ 0x4938e0
// > LevelSearchLayer::onMostDownloaded @ 0x496b0c
// > LevelSearchLayer::onMostLikes @ 0x496b84
// > LevelSearchLayer::onHyped @ 0x496bfc
// > LevelSearchLayer::onTrending @ 0x496c74
// > LevelSearchLayer::onMagic @ 0x496cec
// > LevelSearchLayer::onMostRecent @ 0x496d64
// > LevelSearchLayer::onLatestStars @ 0x496ddc
// > LevelSearchLayer::onFriends @ 0x496e54
// > LevelSearchLayer::onFollowed @ 0x496ecc
// > LevelSearchLayer::onStarAward @ 0x496f44
// > LevelSearchLayer::onSearch @ 0x4997ea
// > LevelSearchLayer::onSearchUser @ 0x4998aa
// > LevelInfoLayer::onGarage @ 0x499eea
// > UploadPopup::onBack @ 0x4a26dc
// > GameLevelManager::gotoLevelPage @ 0x4b58f4
// > ProfilePage::onMyLevels @ 0x5f6b32
// > ProfilePage::onMyLevels @ 0x5f6bd6
// > ProfilePage::onMyLists @ 0x5f6ce6
// > DailyLevelPage::onTheSafe @ 0x606cf4
// > WorldSelectLayer::onGarage @ 0x62cbbc
// > AccountReviewPopup::jumpTo @ 0x7327b4
// > AccountReviewPopup::onJumpRow @ 0x73a520
// > cocos2d::CCDirector::runWithScene @ 0x7ca938
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:30 +0000
//
int __fastcall cocos2d::CCDirector::pushScene(cocos2d::CCDirector *this, cocos2d::CCScene *a2)
{
ptrdiff_t v3; // r6
char v5; // r3
v3 = *((unsigned __int8 *)this + 140);
if ( *((_BYTE *)this + 140) )
return 0;
*((_BYTE *)this + 228) = v3;
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 58), a2);
*((_DWORD *)this + 56) = a2;
if ( a2
&& _dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene,
v3) )
{
v5 = 1;
}
else
{
cocos2d::CCDirector::willSwitchToScene((int)this, (int)a2);
v5 = 0;
}
*((_BYTE *)this + 140) = v5;
return 1;
}