//
// GJPathRewardPopup::closePopup from 0xa6cc54 to 0xa6ccc0 (108 bytes)
//
// 4 xrefs:
// > GJPathRewardPopup::onClaim @ 0xa6cebc
// > ??> @ 0x45798
// > GJPathRewardPopup::onClaim @ 0xa6ce1c
// > ??> @ 0x122a390
//
// 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
//
void GJPathRewardPopup::closePopup(GJPathRewardPopup *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCTouchDispatcher *v3; // x0
v2 = cocos2d::CCDirector::sharedDirector();
v3 = v2->getTouchDispatcher(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}