//
// GJChestSprite::init from 0x937c24 to 0x937c8c (104 bytes)
//
// 2 xrefs:
// > GJChestSprite::create @ 0x937ce0
// > ??> @ 0x876c0
//
// 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)
{
bool v3; // w19
GJChestSprite_vtbl *v4; // x2
v3 = cocos2d::CCSprite::init(a1);
if ( v3 )
{
v4 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_chestType = a2;
v4->setContentSize(a1, &stru_1243500);
GJChestSprite::switchToState(a1, Closed, 0);
}
return v3;
}