//
// MapSelectLayer::create from 0x100267e20 to 0x100267f0d (237 bytes)
//
// 1 xrefs:
// > MapSelectLayer::scene @ 0x100267df7
//
// 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 *__fastcall MapSelectLayer::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x1E8u);
cocos2d::CCLayer::CCLayer(v0);
*(_QWORD *)v0 = off_1008EB058;
*((_QWORD *)v0 + 40) = off_1008EB4E0;
*((_QWORD *)v0 + 41) = &off_1008EB550;
*((_QWORD *)v0 + 42) = off_1008EB568;
*((_QWORD *)v0 + 43) = off_1008EB588;
*((_QWORD *)v0 + 44) = off_1008EB5A8;
*((_QWORD *)v0 + 51) = 0;
*((_QWORD *)v0 + 55) = 0;
v0[448] = 0;
*((_QWORD *)v0 + 53) = 0;
*((_DWORD *)v0 + 108) = 0;
sub_10028CC30(v0 + 452);
sub_10028CC30(v0 + 460);
*(_OWORD *)(v0 + 472) = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (MapSelectLayer *)v0;
}