//
// GJChestSprite::create from 0x4e8688 to 0x4e86f0 (104 bytes)
//
// 15 xrefs:
// > DailyLevelNode::init @ 0x4d47f6
// > GauntletNode::generateNode @ 0x4d8aa4
// > GauntletNode::generateNode @ 0x4d8af2
// > GauntletNode::generateNode @ 0x4d8d52
// > GauntletNode::generateNode @ 0x4d8da0
// > RewardUnlockLayer::init @ 0x4e8a6a
// > SecretLayer3::init @ 0x4ef9e0
// > SecretLayer3::init @ 0x4efb5a
// > SecretLayer4::init @ 0x4f206a
// > FollowRewardPage::init @ 0x500348
// > SecretRewardsLayer::init @ 0x586760
// > SecretRewardsLayer::init @ 0x586b1c
// > SecretRewardsLayer::generateChestItems @ 0x589c9c
// > GJPathRewardPopup::init @ 0x58e538
// > GJPathRewardPopup::init @ 0x58e580
//
// 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
//
GJChestSprite *GJChestSprite::create(int a1)
{
GJChestSprite *v2; // r4
GJChestSprite_vtbl *v3; // r3
int *v4; // r0
v2 = (GJChestSprite *)operator new(0x208u);
cocos2d::CCSprite::CCSprite(v2);
v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJChestSprite_vtbl *)&off_A7A478;
v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A7A6E4;
v2->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A7A724;
v2->m_chestType = 0;
v2->m_spriteState = 0;
v2->m_dark = 0;
if ( GJChestSprite::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = (int *)v2;
v2 = nullptr;
v3->~GJChestSprite_0((GJChestSprite *)v4);
}
return v2;
}