{"type": "func", "start": 5372457248, "end": 5372457339, "name": "GJPathRewardPopup::closePopup", "pseudocode": "// \n// GJPathRewardPopup::closePopup from 0x140393120 to 0x14039317b (91 bytes)\n// \n// 5 xrefs:\n// > GJPathRewardPopup::onClaim @ 0x140398303\n// > GJPathsLayer::init @ 0x140392aef\n// > GJPathRewardPopup::onClaim @ 0x140398329\n// > GJPromoPopup::init @ 0x1403aad7d\n// > <???> @ 0x140923084\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:11 +0000\n// \n\n// Merged with: GJPathRewardPopup::closePopup, GJPathsLayer::onClose, GJPromoPopup::onClose\n__int64 __fastcall GJPathRewardPopup::closePopup(struct cocos2d::CCObject *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 **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v4) = 1;\n  return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v4);\n}", "assembly": "; \n; GJPathRewardPopup::closePopup from 0x140393120 to 0x14039317b (91 bytes)\n; \n; 5 xrefs:\n; > GJPathRewardPopup::onClaim @ 0x140398303\n; > GJPathsLayer::init @ 0x140392aef\n; > GJPathRewardPopup::onClaim @ 0x140398329\n; > GJPromoPopup::init @ 0x1403aad7d\n; > <???> @ 0x140923084\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:11 +0000\n; \npush    rbx                                                            ; +0x0, 0x140393120\nsub     rsp, 20h                                                       ; +0x2, 0x140393122\nmov     rbx, rcx                                                       ; +0x6, 0x140393126\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x140393129\nmov     rcx, rax                                                       ; +0xf, 0x14039312f\nmov     rdx, [rax]                                                     ; +0x12, 0x140393132\ncall    qword ptr [rdx+90h]                                            ; +0x15, 0x140393135\nmov     rcx, rax                                                       ; +0x1b, 0x14039313b\nmov     rdx, rbx                                                       ; +0x1e, 0x14039313e\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x21, 0x140393141\nmov     rcx, rbx                                                       ; +0x27, 0x140393147\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x2a, 0x14039314a\nmov     rcx, rbx                                                       ; +0x30, 0x140393150\ncall    cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x33, 0x140393153\nmov     rax, [rbx]                                                     ; +0x39, 0x140393159\nxor     edx, edx                                                       ; +0x3c, 0x14039315c\nmov     rcx, rbx                                                       ; +0x3e, 0x14039315e\ncall    qword ptr [rax+3E0h]                                           ; +0x41, 0x140393161\nmov     rax, [rbx]                                                     ; +0x47, 0x140393167\nmov     dl, 1                                                          ; +0x4a, 0x14039316a\nmov     rcx, rbx                                                       ; +0x4c, 0x14039316c\nadd     rsp, 20h                                                       ; +0x4f, 0x14039316f\npop     rbx                                                            ; +0x53, 0x140393173\njmp     qword ptr [rax+208h]                                           ; +0x54, 0x140393174", "xrefs": ["GJPathRewardPopup::onClaim @ 0x140398303", "GJPathsLayer::init @ 0x140392aef", "GJPathRewardPopup::onClaim @ 0x140398329", "GJPromoPopup::init @ 0x1403aad7d", "<???> @ 0x140923084"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}