//
// ChallengesPage::onClose from 0x140086990 to 0x1400869ca (58 bytes)
//
// 3 xrefs:
// > ChallengesPage::init @ 0x1400855ed
// > DailyLevelPage::init @ 0x1400cf150
// > ??> @ 0x1406c6c84
//
// 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
//
// Merged with: ChallengesPage::onClose, DailyLevelPage::onClose
__int64 __fastcall ChallengesPage::onClose(cocos2d::CCNode *a1)
{
__int64 v2; // rdx
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a1->__vftable[1].setVertexZ)(a1, 0);
LOBYTE(v2) = 1;
return ((__int64 (__fastcall *)(cocos2d::CCNode *, __int64))a1->removeFromParentAndCleanup)(a1, v2);
}