//
// CreatorLayer::onFeaturedLevels from 0x140137740 to 0x140137801 (193 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x140135d55
// > ??> @ 0x140917138
//
// This function is hookable on this platform (idp: pc, 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:27:05 +0000
//
// Hidden C++ exception states: #wind=4
__int64 CreatorLayer::onFeaturedLevels()
{
__int64 v0; // rbx
struct cocos2d::CCScene *v1; // rdi
__int64 v2; // rcx
__int64 v3; // rax
struct cocos2d::CCScene *v4; // rbx
__int64 v5; // rcx
cocos2d::CCDirector *v6; // rax
__int64 result; // rax
void *v8; // [rsp+20h] [rbp-18h]
v0 = GJSearchObject::create_2(6);
v1 = (struct cocos2d::CCScene *)cocos2d::CCScene::create();
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v2) + 232) = v1;
v3 = LevelBrowserLayer::create(v0);
(*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v1 + 464LL))(v1, v3);
v4 = cocos2d::CCTransitionFade::create(0.5, v1);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::pushScene(v6, v4);
result = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
result = qword_14090BFD0;
}
*(_DWORD *)(result + 740) = 1;
return result;
}