//
// LevelListLayer::scene from 0x140303410 to 0x140303636 (550 bytes)
//
// 6 xrefs:
// > LevelListCell::onClick @ 0x1400c013a
// > LevelListCell::onClick @ 0x1400c01b0
// > LevelBrowserLayer::onNew @ 0x1402cde78
// > LevelListLayer::cloneList @ 0x14030840f
// > UploadListPopup::onReturnToList @ 0x14030bc3b
// > ??> @ 0x1406d4454
//
// 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
cocos2d::CCScene *LevelListLayer::scene(GJLevelList *a1)
{
cocos2d::CCScene *v2; // rsi
__int64 v3; // rdx
__int64 v4; // rcx
char *v5; // rdi
v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(a1);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;
v5 = (char *)operator new(0x3D8u);
LevelBrowserLayer::LevelBrowserLayer((LevelBrowserLayer *)v5);
*(_QWORD *)v5 = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 40) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 41) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 42) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 43) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 44) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 51) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 54) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 68) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 69) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 70) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 71) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 72) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 73) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 100) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 101) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 102) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 103) = &LevelListLayer::`vftable';
*((_QWORD *)v5 + 104) = 0;
*(_OWORD *)(v5 + 840) = 0;
*((_QWORD *)v5 + 107) = 0;
*((_QWORD *)v5 + 108) = 15;
v5[840] = 0;
*((_QWORD *)v5 + 109) = 0;
*((_OWORD *)v5 + 55) = 0;
*((_QWORD *)v5 + 112) = 0;
*((_QWORD *)v5 + 113) = 15;
v5[880] = 0;
*((_QWORD *)v5 + 114) = 0;
v5[920] = 0;
*((_QWORD *)v5 + 116) = 0;
*((_DWORD *)v5 + 234) = 0;
*((_QWORD *)v5 + 118) = 0;
*((_QWORD *)v5 + 119) = 0;
*((_QWORD *)v5 + 120) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v5 + 121);
v5[976] = 0;
if ( LevelListLayer::init((LevelListLayer *)v5, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
v5 = nullptr;
}
v2->addChild_1(v2, (cocos2d::CCNode *)v5);
return v2;
}