//
// GJMapObject::create from 0x63ef20 to 0x63efa8 (136 bytes)
//
// 2 xrefs:
// > GJMapObject::createMonster @ 0x63fea6
// > MapSelectLayer::init @ 0x640c18
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:27 +0000
//
int *__fastcall GJMapObject::create(GJMapObject *this, cocos2d::CCNode *a2)
{
int *v3; // r4
int v4; // r2
int v5; // r3
int *v6; // r0
v3 = (int *)operator new(0x138u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v3);
v3[68] = 0;
v3[69] = 0;
*v3 = (int)&off_CCF1B8;
*((_QWORD *)v3 + 33) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 70));
*((_BYTE *)v3 + 292) = 0;
*((_BYTE *)v3 + 293) = 0;
v3[76] = 0;
v3[72] = 0;
*((_QWORD *)v3 + 37) = 0;
if ( GJMapObject::init((GJMapObject *)v3, this, v4, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v5 = *v3;
v6 = v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v5 + 8))(v6);
}
return v3;
}