//
// MapSelectLayer::create from 0x97e9d8 to 0x97eae0 (264 bytes)
//
// 2 xrefs:
// > MapSelectLayer::scene @ 0x97eafc
// > ??> @ 0xa2a20
//
// 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
//
MapSelectLayer *MapSelectLayer::create()
{
__int64 v0; // x19
__int64 v1; // x1
v0 = operator new(0x1E8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v0);
*(_QWORD *)(v0 + 408) = 0;
*(_QWORD *)v0 = &off_11C3710;
*(_QWORD *)(v0 + 320) = off_11C3B98;
*(_QWORD *)(v0 + 328) = &off_11C3C08;
*(_QWORD *)(v0 + 336) = &off_11C3C20;
*(_QWORD *)(v0 + 344) = &off_11C3C40;
*(_QWORD *)(v0 + 352) = off_11C3C60;
*(_QWORD *)(v0 + 424) = 0;
*(_BYTE *)(v0 + 432) = 0;
*(_BYTE *)(v0 + 433) = 0;
*(_BYTE *)(v0 + 434) = 0;
*(_BYTE *)(v0 + 435) = 0;
*(_BYTE *)(v0 + 448) = 0;
*(_QWORD *)(v0 + 440) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 452));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 460));
v1 = *(_QWORD *)v0;
*(_QWORD *)(v0 + 472) = 0;
*(_QWORD *)(v0 + 480) = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v1 + 80))(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (MapSelectLayer *)v0;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
}