//
// GJChestSprite::init from 0x10021f850 to 0x10021f89a (74 bytes)
//
// 0 xrefs:
//
// 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 __fastcall GJChestSprite::init(GJChestSprite *a1, int a2)
{
bool result; // al
bool v3; // r14
result = cocos2d::CCSprite::init(a1);
if ( result )
{
a1->m_chestType = a2;
v3 = result;
((void (__fastcall *)(GJChestSprite *, void *))a1->setContentSize)(a1, &unk_10099F3F8);
GJChestSprite::switchToState(a1, Closed, 0);
return v3;
}
return result;
}