//
// GJPathRewardPopup::closePopup from 0x1402853f0 to 0x14028544b (91 bytes)
//
// 5 xrefs:
// > GJPathRewardPopup::onClaim @ 0x14028a4a0
// > GJPathsLayer::init @ 0x140284ddf
// > GJPathRewardPopup::onClaim @ 0x14028a4c6
// > GJPromoPopup::init @ 0x1402a4e0f
// > ??> @ 0x1406d155c
//
// 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: GJPathRewardPopup::closePopup, GJPathsLayer::onClose, GJPromoPopup::onClose
__int64 __fastcall GJPathRewardPopup::closePopup(cocos2d::CCNode *a1)
{
__int64 v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
__int64 v4; // rdx
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a1->__vftable[1].setVertexZ)(a1, 0);
LOBYTE(v4) = 1;
return ((__int64 (__fastcall *)(cocos2d::CCNode *, __int64))a1->removeFromParentAndCleanup)(a1, v4);
}