//
// GJChestSprite::create from 0x619620 to 0x619688 (104 bytes)
//
// 17 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x42ef6c
// > GJNotificationCell::loadFromNotification @ 0x43230e
// > DailyLevelNode::init @ 0x607662
// > GauntletNode::generateNode @ 0x60c496
// > GauntletNode::generateNode @ 0x60c4e4
// > GauntletNode::generateNode @ 0x60c75c
// > GauntletNode::generateNode @ 0x60c7aa
// > RewardUnlockLayer::init @ 0x619a9c
// > SecretLayer3::init @ 0x6206f6
// > SecretLayer3::init @ 0x6208a0
// > SecretLayer4::init @ 0x62329e
// > FollowRewardPage::init @ 0x630e16
// > SecretRewardsLayer::init @ 0x6ce870
// > SecretRewardsLayer::init @ 0x6cec50
// > SecretRewardsLayer::generateChestItems @ 0x6cf8b4
// > GJPathRewardPopup::init @ 0x6d1e6a
// > GJPathRewardPopup::init @ 0x6d1eb2
//
// 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:54:58 +0000
//
cocos2d::CCSprite *__fastcall GJChestSprite::create(GJChestSprite *this, int a2)
{
cocos2d::CCSprite *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (cocos2d::CCSprite *)operator new(0x208u);
cocos2d::CCSprite::CCSprite(v3);
*(_DWORD *)v3 = &off_CC65A8;
*((_DWORD *)v3 + 66) = &off_CC681C;
*((_DWORD *)v3 + 70) = &off_CC685C;
*((_DWORD *)v3 + 127) = 0;
*((_DWORD *)v3 + 128) = 0;
*((_BYTE *)v3 + 516) = 0;
if ( GJChestSprite::init(v3, (int)this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}