//
// GJPromoPopup::onClose from 0xa1e970 to 0xa1e9dc (108 bytes)
//
// 4 xrefs:
// > GJPromoPopup::keyBackClicked @ 0xa1e9e0
// > ??> @ 0x101c08
// > GJPromoPopup::init @ 0xa30e84
// > ??> @ 0x1547e20
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:59:39 +0000
//
__int64 __fastcall GJPromoPopup::onClose(GJPromoPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, this);
cocos2d::CCNode::stopAllActions(this);
cocos2d::CCNode::unscheduleAllSelectors(this);
(*(void (__fastcall **)(GJPromoPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(GJPromoPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}