//
// CreatorLayer::onMapPacks from 0x7db51c to 0x7db568 (76 bytes)
//
// 3 xrefs:
// > ??> @ 0x969d0
// > CreatorLayer::init @ 0x7dd36c
// > ??> @ 0x1544178
//
// 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 12:54:23 +0000
//
__int64 __fastcall CreatorLayer::onMapPacks(CreatorLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // x19
LevelBrowserLayer *v3; // x0
GJSearchObject *v4; // x1
cocos2d::CCTransitionFade *v5; // x0
cocos2d::CCScene *v6; // x1
cocos2d::CCScene *v7; // x0
GameManager *v8; // x0
__int64 result; // x0
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v3 = (LevelBrowserLayer *)GJSearchObject::create(9);
v5 = (cocos2d::CCTransitionFade *)LevelBrowserLayer::scene(v3, v4);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v5, 0.5, v6);
v8 = (GameManager *)cocos2d::CCDirector::pushScene(v2, v7);
result = GameManager::sharedState(v8);
*(_DWORD *)(result + 708) = 1;
return result;
}