//
// GJChestSprite::create from 0xa88ff8 to 0xa890a8 (176 bytes)
//
// 18 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x747c24
// > GJNotificationCell::loadFromNotification @ 0x74a70c
// > DailyLevelNode::init @ 0xa6e8ec
// > GauntletNode::generateNode @ 0xa74ee4
// > GauntletNode::generateNode @ 0xa74f5c
// > GauntletNode::generateNode @ 0xa76080
// > GauntletNode::generateNode @ 0xa760f8
// > RewardUnlockLayer::init @ 0xa89518
// > SecretLayer3::init @ 0xa92fe0
// > SecretLayer3::init @ 0xa9321c
// > SecretLayer4::init @ 0xa975c0
// > FollowRewardPage::init @ 0xaab7dc
// > SecretRewardsLayer::init @ 0xb9fa60
// > SecretRewardsLayer::init @ 0xb9fd78
// > SecretRewardsLayer::generateChestItems @ 0xba1224
// > GJPathRewardPopup::init @ 0xba4954
// > GJPathRewardPopup::init @ 0xba49c0
// > ??> @ 0x103b10
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:00:36 +0000
//
__int64 __fastcall GJChestSprite::create(GJChestSprite *this)
{
int v1; // w20
__int64 v2; // x19
v1 = (int)this;
v2 = operator new(0x260u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);
*(_DWORD *)(v2 + 596) = 0;
*(_QWORD *)v2 = &off_14991D0;
*(_QWORD *)(v2 + 320) = &off_14996B8;
*(_QWORD *)(v2 + 344) = &off_1499738;
*(_DWORD *)(v2 + 600) = 0;
*(_BYTE *)(v2 + 604) = 0;
if ( (unsigned __int8)GJChestSprite::init((GJChestSprite *)v2, v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return 0;
}
}