//
// LevelSelectLayer::create from 0x79e510 to 0x79e5fc (236 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::scene @ 0x79e620
// > ??> @ 0x9b6d0
//
// 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
//
LevelSelectLayer *LevelSelectLayer::create(int a1)
{
__int64 v2; // x19
v2 = operator new(0x1D8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v2);
*(_QWORD *)(v2 + 432) = 0;
*(_QWORD *)v2 = &off_117A650;
*(_QWORD *)(v2 + 320) = off_117AAE0;
*(_QWORD *)(v2 + 328) = &off_117AB50;
*(_QWORD *)(v2 + 336) = &off_117AB68;
*(_QWORD *)(v2 + 344) = &off_117AB88;
*(_QWORD *)(v2 + 352) = off_117ABA8;
*(_QWORD *)(v2 + 408) = &off_117ABD0;
*(_QWORD *)(v2 + 416) = &off_117AC00;
*(_QWORD *)(v2 + 440) = 0;
*(_QWORD *)(v2 + 448) = 0;
*(_DWORD *)(v2 + 456) = 0;
*(_DWORD *)(v2 + 460) = 0;
*(_BYTE *)(v2 + 464) = 0;
*(_DWORD *)(v2 + 424) = 0;
if ( LevelSelectLayer::init((LevelSelectLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (LevelSelectLayer *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}