//
// GJChestSprite::init from 0x4e8654 to 0x4e8684 (48 bytes)
//
// 1 xrefs:
// > GJChestSprite::create @ 0x4e86c8
//
// 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
//
bool GJChestSprite::init(GJChestSprite *a1, int a2)
{
_BOOL4 v4; // r5
GJChestSprite_vtbl *v5; // r3
v4 = cocos2d::CCSprite::init(a1);
if ( v4 )
{
v5 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_chestType = a2;
v5->setContentSize(a1, &stru_AC6F98);
GJChestSprite::switchToState(a1, Closed, 0);
}
return v4;
}