//
// GJMapObject::create from 0x100266a50 to 0x100266ae6 (150 bytes)
//
// 3 xrefs:
// > GJMapObject::createMonster @ 0x100266d95
// > GJMapObject::createMonster @ 0x100266e91
// > MapSelectLayer::init @ 0x100268134
//
// 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
//
GJMapObject *__fastcall GJMapObject::create(cocos2d::CCNode *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x168u);
cocos2d::CCNode::CCNode(v1);
*(_QWORD *)v1 = off_1008EACD8;
*(_OWORD *)(v1 + 316) = 0;
*((_DWORD *)v1 + 83) = 0;
sub_10028CC30(v1 + 336);
*((_DWORD *)v1 + 86) = 0;
*((_WORD *)v1 + 174) = 0;
*((_QWORD *)v1 + 44) = 0;
if ( GJMapObject::init((GJMapObject *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (GJMapObject *)v1;
}