//
// GJMapObject::create from 0x97df08 to 0x97dfdc (212 bytes)
//
// 4 xrefs:
// > GJMapObject::createMonster @ 0x97e7f8
// > GJMapObject::createMonster @ 0x97e884
// > MapSelectLayer::init @ 0x980664
// > ??> @ 0x8b8a8
//
// 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 *GJMapObject::create(cocos2d::CCNode *a1)
{
__int64 v2; // x19
v2 = operator new(0x168u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v2);
*(_QWORD *)(v2 + 320) = 0;
*(_QWORD *)(v2 + 328) = 0;
*(_QWORD *)v2 = &off_11C3390;
*(_DWORD *)(v2 + 316) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 336));
*(_BYTE *)(v2 + 348) = 0;
*(_BYTE *)(v2 + 349) = 0;
*(_DWORD *)(v2 + 356) = 0;
*(_DWORD *)(v2 + 344) = 0;
*(_DWORD *)(v2 + 352) = 0;
if ( GJMapObject::init((GJMapObject *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (GJMapObject *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}