//
// GJMapObject::create from 0x100250a90 to 0x100250b31 (161 bytes)
//
// 3 xrefs:
// > GJMapObject::createMonster @ 0x100250dd5
// > GJMapObject::createMonster @ 0x100250ed1
// > MapSelectLayer::init @ 0x100252134
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:27:24 +0000
//
_OWORD *__fastcall GJMapObject::create(__int64 a1)
{
_OWORD *v1; // rbx
v1 = operator new(0x178u);
cocos2d::CCNode::CCNode(v1);
*(_QWORD *)v1 = off_100AF06E8;
v1[20] = 0;
*((_QWORD *)v1 + 42) = 0;
sub_1002782A0((char *)v1 + 344);
*((_DWORD *)v1 + 88) = 0;
*((_WORD *)v1 + 178) = 0;
*((_QWORD *)v1 + 45) = 0;
*((_DWORD *)v1 + 92) = 0;
if ( (unsigned __int8)GJMapObject::init(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}