//
// RewardUnlockLayer::create from 0x1403cdcc0 to 0x1403cdde1 (289 bytes)
//
// 15 xrefs:
// > DailyLevelPage::claimLevelReward @ 0x1400d1b63
// > FollowRewardPage::onSpecialItem @ 0x14013cf4f
// > GauntletSelectLayer::onPlay @ 0x1401fae6a
// > GJPathRewardPopup::onClaim @ 0x14028a507
// > GJShopLayer::dialogClosed @ 0x1402ae89b
// > RewardsPage::onReward @ 0x1403cd411
// > SecretRewardsLayer::onSelectItem @ 0x1403d6574
// > SecretRewardsLayer::onSpecialItem @ 0x1403d6e1a
// > SecretRewardsLayer::onGoldChest @ 0x1403d75cf
// > SecretLayer3::onChest01 @ 0x1403eb5b7
// > SecretLayer3::onChest02 @ 0x1403eb737
// > SecretLayer4::onChest01 @ 0x1403f0c9a
// > SecretLayer5::claimOnlineReward @ 0x1403f68f7
// > SupportLayer::onGetReward @ 0x1404c9a0b
// > ??> @ 0x1406d7bf8
//
// 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
//
// Hidden C++ exception states: #wind=1
RewardUnlockLayer *RewardUnlockLayer::create(int a1, RewardsPage *a2)
{
RewardUnlockLayer *v4; // rsi
v4 = (RewardUnlockLayer *)operator new(0x2C8u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RewardUnlockLayer_vtbl *)&RewardUnlockLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&RewardUnlockLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&RewardUnlockLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&RewardUnlockLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&RewardUnlockLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&RewardUnlockLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&RewardUnlockLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&RewardUnlockLayer::`vftable';
v4->CurrencyRewardDelegate::__vftable = (CurrencyRewardDelegate_vtbl *)&RewardUnlockLayer::`vftable';
v4->m_backgroundObjects = nullptr;
v4->m_rewardsPage = nullptr;
v4->m_chestSprite = nullptr;
v4->m_chestType = 0;
*(_WORD *)&v4->m_rewardCollected = 0;
v4->m_rewardItem = nullptr;
v4->m_unkFloat = 0.0;
if ( RewardUnlockLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
((void (__fastcall *)(RewardUnlockLayer *, __int64))v4->~RewardUnlockLayer)(v4, 1);
return nullptr;
}
}