//
// GJMapObject::init from 0x63ee60 to 0x63ef0c (172 bytes)
//
// 1 xrefs:
// > GJMapObject::create @ 0x63ef76
//
// 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::init(GJMapObject *this, cocos2d::CCNode *a2, int a3, int a4)
{
int v6; // r7
const char *v8; // r1
int v9; // r0
int v10; // r3
int v11; // r6
void (__fastcall *v12)(int, cocos2d::CCNode **); // r8
cocos2d::CCNode *v14; // [sp+4h] [bp-Ch] BYREF
int v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v14 = a2;
v15 = a3;
v16 = a4;
if ( !a2 )
return 0;
v6 = cocos2d::CCNode::init(this);
if ( !v6 )
return 0;
*((_DWORD *)this + 68) = a2;
cocos2d::CCObject::retain(a2);
(*(void (__fastcall **)(GJMapObject *, _DWORD, int, _DWORD, GJMapObject *, cocos2d::CCNode *, int, int))(*(_DWORD *)this + 232))(
this,
*((_DWORD *)this + 68),
2,
*(_DWORD *)(*(_DWORD *)this + 232),
this,
v14,
v15,
v16);
v9 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chest_shadow_001.png", v8);
v10 = *(_DWORD *)this;
*((_DWORD *)this + 69) = v9;
(*(void (__fastcall **)(GJMapObject *, int, int))(v10 + 232))(this, v9, 1);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 64))(*((_DWORD *)this + 69), 1042536202);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 72))(*((_DWORD *)this + 69), 1055286886);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 456))(*((_DWORD *)this + 69), 50);
v11 = *((_DWORD *)this + 69);
v12 = *(void (__fastcall **)(int, cocos2d::CCNode **))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, 0.0, -9.0);
v12(v11, &v14);
return v6;
}