//
// MenuLayer::onDaily from 0x1403350a0 to 0x1403351e9 (329 bytes)
//
// 2 xrefs:
// > MenuLayer::init @ 0x140334eb0
// > ??> @ 0x1406d5108
//
// 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
void MenuLayer::onDaily(MenuLayer *a1, cocos2d::CCObject *a2)
{
RewardsPage *v2; // rbx
void (__fastcall *show)(RewardsPage *__hidden); // rdx
v2 = (RewardsPage *)operator new(0x2B8u);
FLAlertLayer::FLAlertLayer(v2);
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RewardsPage_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&RewardsPage::`vftable';
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&RewardsPage::`vftable';
v2->GJRewardDelegate::__vftable = (GJRewardDelegate_vtbl *)&RewardsPage::`vftable';
v2->m_leftLabel = nullptr;
v2->m_rightLabel = nullptr;
v2->m_leftChest = nullptr;
v2->m_rightChest = nullptr;
*(_WORD *)&v2->m_leftOpen = 0;
v2->m_openLayer = nullptr;
if ( RewardsPage::init(v2) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(RewardsPage *, __int64))v2->~RewardsPage)(v2, 1);
v2 = nullptr;
}
show = v2->show;
if ( (char *)show == (char *)ProfilePage::show )
ProfilePage::show(v2);
else
show(v2);
}