//
// CreatorLayer::onFeaturedLevels from 0x14009d910 to 0x14009d9cb (187 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x14009c7d8
// > ??> @ 0x1406c759c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=4
void CreatorLayer::onFeaturedLevels(CreatorLayer *a1, cocos2d::CCObject *a2)
{
GJSearchObject *v2; // rbx
__int64 v3; // rdx
__int64 v4; // rcx
struct cocos2d::CCScene *v5; // rdi
__int64 v6; // rdx
__int64 v7; // rcx
LevelBrowserLayer *v8; // rax
struct cocos2d::CCTransitionFade *v9; // rbx
__int64 v10; // rcx
cocos2d::CCDirector *v11; // rax
__int64 v12; // rax
void *v13; // [rsp+20h] [rbp-18h]
v2 = GJSearchObject::create_2(Recent|MostLiked);
v5 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v4, v3);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v7, v6) + 224) = v5;
v8 = LevelBrowserLayer::create(v2);
v5->addChild_1(v5, v8);
v9 = cocos2d::CCTransitionFade::create(0.5, v5);
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
cocos2d::CCDirector::pushScene(v11, v9);
v12 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v13 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v12 = qword_1406C2ED8;
}
*(_DWORD *)(v12 + 700) = 1;
}