{"type": "func", "start": 5371352048, "end": 5371352139, "name": "GJPathRewardPopup::closePopup", "pseudocode": "// \n// GJPathRewardPopup::closePopup from 0x1402853f0 to 0x14028544b (91 bytes)\n// \n// 5 xrefs:\n// > GJPathRewardPopup::onClaim @ 0x14028a4a0\n// > GJPathsLayer::init @ 0x140284ddf\n// > GJPathRewardPopup::onClaim @ 0x14028a4c6\n// > GJPromoPopup::init @ 0x1402a4e0f\n// > <???> @ 0x1406d155c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Merged with: GJPathRewardPopup::closePopup, GJPathsLayer::onClose, GJPromoPopup::onClose\n__int64 __fastcall GJPathRewardPopup::closePopup(cocos2d::CCNode *a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  __int64 v4; // rdx\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  cocos2d::CCNode::stopAllActions(a1);\n  cocos2d::CCNode::unscheduleAllSelectors(a1);\n  ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a1->__vftable[1].setVertexZ)(a1, 0);\n  LOBYTE(v4) = 1;\n  return ((__int64 (__fastcall *)(cocos2d::CCNode *, __int64))a1->removeFromParentAndCleanup)(a1, v4);\n}", "assembly": "; \n; GJPathRewardPopup::closePopup from 0x1402853f0 to 0x14028544b (91 bytes)\n; \n; 5 xrefs:\n; > GJPathRewardPopup::onClaim @ 0x14028a4a0\n; > GJPathsLayer::init @ 0x140284ddf\n; > GJPathRewardPopup::onClaim @ 0x14028a4c6\n; > GJPromoPopup::init @ 0x1402a4e0f\n; > <???> @ 0x1406d155c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1402853f0\nsub     rsp, 20h                                                       ; +0x2, 0x1402853f2\nmov     rbx, rcx                                                       ; +0x6, 0x1402853f6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x1402853f9\nmov     rcx, rax                                                       ; +0xf, 0x1402853ff\nmov     rdx, [rax]                                                     ; +0x12, 0x140285402\ncall    qword ptr [rdx+90h]                                            ; +0x15, 0x140285405\nmov     rcx, rax                                                       ; +0x1b, 0x14028540b\nmov     rdx, rbx                                                       ; +0x1e, 0x14028540e\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x21, 0x140285411\nmov     rcx, rbx                                                       ; +0x27, 0x140285417\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x2a, 0x14028541a\nmov     rcx, rbx                                                       ; +0x30, 0x140285420\ncall    cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x33, 0x140285423\nmov     rax, [rbx]                                                     ; +0x39, 0x140285429\nxor     edx, edx                                                       ; +0x3c, 0x14028542c\nmov     rcx, rbx                                                       ; +0x3e, 0x14028542e\ncall    qword ptr [rax+3D0h]                                           ; +0x41, 0x140285431\nmov     rax, [rbx]                                                     ; +0x47, 0x140285437\nmov     dl, 1                                                          ; +0x4a, 0x14028543a\nmov     rcx, rbx                                                       ; +0x4c, 0x14028543c\nadd     rsp, 20h                                                       ; +0x4f, 0x14028543f\npop     rbx                                                            ; +0x53, 0x140285443\njmp     qword ptr [rax+1F8h]                                           ; +0x54, 0x140285444", "xrefs": ["GJPathRewardPopup::onClaim @ 0x14028a4a0", "GJPathsLayer::init @ 0x140284ddf", "GJPathRewardPopup::onClaim @ 0x14028a4c6", "GJPromoPopup::init @ 0x1402a4e0f", "<???> @ 0x1406d155c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}