//
// GJMapObject::create from 0xac194c to 0xac1a24 (216 bytes)
//
// 4 xrefs:
// > GJMapObject::createMonster @ 0xac2ddc
// > GJMapObject::createMonster @ 0xac2e8c
// > MapSelectLayer::init @ 0xac41b0
// > ??> @ 0xb8e88
//
// This function is hookable on this platform (idp: arm, 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 13:01:05 +0000
//
__int64 __fastcall GJMapObject::create(GJMapObject *this, cocos2d::CCNode *a2)
{
__int64 v3; // x19
v3 = operator new(0x178u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v3);
*(_QWORD *)(v3 + 328) = 0;
*(_QWORD *)(v3 + 336) = 0;
*(_QWORD *)v3 = &off_14AA9E0;
*(_QWORD *)(v3 + 320) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 344));
*(_BYTE *)(v3 + 356) = 0;
*(_BYTE *)(v3 + 357) = 0;
*(_DWORD *)(v3 + 368) = 0;
*(_DWORD *)(v3 + 352) = 0;
*(_QWORD *)(v3 + 360) = 0;
if ( (unsigned __int8)GJMapObject::init((GJMapObject *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
return 0;
}
}