//
// LevelListLayer::scene from 0x14042b070 to 0x14042b2a4 (564 bytes)
//
// 6 xrefs:
// > LevelListCell::onClick @ 0x14015f948
// > LevelListCell::onClick @ 0x14015f9c6
// > LevelBrowserLayer::onNew @ 0x1403e8043
// > LevelListLayer::cloneList @ 0x1404302df
// > UploadListPopup::onReturnToList @ 0x140433f2b
// > ??> @ 0x140926b10
//
// 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:32:12 +0000
//
// Hidden C++ exception states: #wind=4
__int64 __fastcall LevelListLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // rsi
__int64 v6; // rcx
char *v7; // rdi
v5 = cocos2d::CCScene::create(a1, a2, a3, a4);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6) + 232) = v5;
v7 = (char *)operator new(0x408u);
LevelBrowserLayer::LevelBrowserLayer((__int64)v7);
*(_QWORD *)v7 = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 40) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 41) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 42) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 43) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 44) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 51) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 54) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 68) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 69) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 70) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 71) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 72) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 73) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 105) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 106) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 107) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 108) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 109) = &LevelListLayer::`vftable';
*((_QWORD *)v7 + 110) = 0;
*(_OWORD *)(v7 + 888) = 0;
*((_QWORD *)v7 + 113) = 0;
*((_QWORD *)v7 + 114) = 15;
v7[888] = 0;
*((_QWORD *)v7 + 115) = 0;
*((_OWORD *)v7 + 58) = 0;
*((_QWORD *)v7 + 118) = 0;
*((_QWORD *)v7 + 119) = 15;
v7[928] = 0;
*((_QWORD *)v7 + 120) = 0;
v7[968] = 0;
*((_QWORD *)v7 + 122) = 0;
*((_DWORD *)v7 + 246) = 0;
*((_QWORD *)v7 + 124) = 0;
*((_QWORD *)v7 + 125) = 0;
*((_QWORD *)v7 + 126) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v7 + 1016));
v7[1024] = 0;
if ( (unsigned __int8)LevelListLayer::init(v7, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);
v7 = nullptr;
}
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 464LL))(v5, v7);
return v5;
}