//
// cocos2d::CCDirector::pushScene from 0x1002074a8 to 0x100207554 (172 bytes)
//
// 36 xrefs:
// > LevelInfoLayer::onGarage @ 0x10002c3dc
// > LevelSearchLayer::onSearch @ 0x10005bcf4
// > LevelSearchLayer::onSearchUser @ 0x10005be34
// > LevelSearchLayer::onMostDownloaded @ 0x10005c03c
// > LevelSearchLayer::onMostLikes @ 0x10005c0e0
// > LevelSearchLayer::onHyped @ 0x10005c184
// > LevelSearchLayer::onTrending @ 0x10005c228
// > LevelSearchLayer::onMostRecent @ 0x10005c2cc
// > LevelSearchLayer::onMagic @ 0x10005c370
// > LevelSearchLayer::onLatestStars @ 0x10005c414
// > LevelSearchLayer::onFollowed @ 0x10005c4b8
// > LevelSearchLayer::onFriends @ 0x10005c55c
// > GameLevelManager::gotoLevelPage @ 0x1000ad7ac
// > CreatorLayer::onSavedLevels @ 0x1000db7a4
// > CreatorLayer::onLeaderboards @ 0x1000db7ec
// > CreatorLayer::onGauntlets @ 0x1000dbd10
// > CreatorLayer::onFeaturedLevels @ 0x1000dbd5c
// > CreatorLayer::onTopLists @ 0x1000dbdd8
// > CreatorLayer::onMapPacks @ 0x1000dbe24
// > CreatorLayer::onOnlineLevels @ 0x1000dbe78
// > CreatorLayer::onMyLevels @ 0x1000dbf54
// > sub_100136B78 @ 0x100136c0c
// > CommentCell::onGoToLevel @ 0x100138618
// > GJScoreCell::onViewProfile @ 0x100138df4
// > sub_10013A99C @ 0x10013aa68
// > sub_10013B72C @ 0x10013b820
// > cocos2d::CCDirector::runWithScene @ 0x10020748c
// > sub_10022EFE8 @ 0x10022f040
// > sub_10022EFE8 @ 0x10022f0e8
// > sub_10022F12C @ 0x10022f190
// > sub_10022F12C @ 0x10022f254
// > sub_10024F768 @ 0x10024f79c
// > sub_100314974 @ 0x1003149bc
// > GameManager::returnToLastScene @ 0x1003bb348
// > sub_100549944 @ 0x100549a18
// > sub_10054B298 @ 0x10054b358
//
// 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 11:00:57 +0000
//
__int64 __fastcall cocos2d::CCDirector::pushScene(__int64 a1, _QWORD *a2)
{
int v2; // w21
__n128 v5; // q0
char v6; // w8
void (__fastcall ***v7)(_QWORD, _QWORD *, __n128); // x0
void (__fastcall ***v8)(_QWORD, __n128); // x0
v2 = *(unsigned __int8 *)(a1 + 176);
if ( (v2 & 1) == 0 )
{
*(_BYTE *)(a1 + 288) = 0;
v5 = sub_1002E74E0(*(_QWORD *)(a1 + 296), a2);
*(_QWORD *)(a1 + 280) = 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 ( (*(_BYTE *)(a1 + 404) & 1) == 0 )
{
v7 = *(void (__fastcall ****)(_QWORD, _QWORD *, __n128))(a1 + 360);
if ( v7 )
(**v7)(v7, a2, v5);
v8 = (void (__fastcall ***)(_QWORD, __n128))a2[40];
if ( v8 )
(**v8)(v8, v5);
}
v6 = 0;
}
*(_BYTE *)(a1 + 176) = v6;
}
return v2 ^ 1u;
}