//
// GJChestSprite::create from 0x937c8c to 0x937d3c (176 bytes)
//
// 16 xrefs:
// > DailyLevelNode::init @ 0x91422c
// > GauntletNode::generateNode @ 0x91a9b0
// > GauntletNode::generateNode @ 0x91aa28
// > GauntletNode::generateNode @ 0x91bbd4
// > GauntletNode::generateNode @ 0x91bc4c
// > RewardUnlockLayer::init @ 0x938188
// > SecretLayer3::init @ 0x9457cc
// > SecretLayer3::init @ 0x945a00
// > SecretLayer4::init @ 0x94afa4
// > FollowRewardPage::init @ 0x96405c
// > SecretRewardsLayer::init @ 0xa62db0
// > SecretRewardsLayer::init @ 0xa630c4
// > SecretRewardsLayer::generateChestItems @ 0xa6a414
// > GJPathRewardPopup::init @ 0xa7147c
// > GJPathRewardPopup::init @ 0xa714e8
// > ??> @ 0xc7ad0
//
// 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)
{
__int64 v2; // x19
v2 = operator new(0x260u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);
*(_DWORD *)(v2 + 596) = 0;
*(_QWORD *)v2 = &off_11B2380;
*(_QWORD *)(v2 + 320) = &off_11B2858;
*(_QWORD *)(v2 + 344) = &off_11B28D8;
*(_DWORD *)(v2 + 600) = 0;
*(_BYTE *)(v2 + 604) = 0;
if ( GJChestSprite::init((GJChestSprite *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (GJChestSprite *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}