{"type": "func", "start": 5371584912, "end": 5371585026, "name": "InfoLayer::onClose", "pseudocode": "// \n// InfoLayer::onClose from 0x1402be190 to 0x1402be202 (114 bytes)\n// \n// 4 xrefs:\n// > InfoLayer::keyBackClicked @ 0x1402be219\n// > InfoLayer::reloadWindow @ 0x1402bf347\n// > InfoLayer::init @ 0x1402bbd92\n// > <???> @ 0x1406d2858\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\nvoid InfoLayer::onClose(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  _BOOL8 v5; // rdx\n\n  if ( a1->m_list )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_list);\n    a1->m_list->removeMeAndCleanup(a1->m_list);\n    a1->m_list = nullptr;\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n}", "assembly": "; \n; InfoLayer::onClose from 0x1402be190 to 0x1402be202 (114 bytes)\n; \n; 4 xrefs:\n; > InfoLayer::keyBackClicked @ 0x1402be219\n; > InfoLayer::reloadWindow @ 0x1402bf347\n; > InfoLayer::init @ 0x1402bbd92\n; > <???> @ 0x1406d2858\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, 0x1402be190\nsub     rsp, 20h                                                       ; +0x2, 0x1402be192\ncmp     qword ptr [rcx+2E0h], 0                                        ; +0x6, 0x1402be196\nmov     rbx, rcx                                                       ; +0xe, 0x1402be19e\njz      short loc_1402BE1E0                                            ; +0x11, 0x1402be1a1\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x13, 0x1402be1a3\nmov     rcx, rax                                                       ; +0x19, 0x1402be1a9\nmov     rdx, [rax]                                                     ; +0x1c, 0x1402be1ac\ncall    qword ptr [rdx+90h]                                            ; +0x1f, 0x1402be1af\nmov     rdx, [rbx+2E0h]                                                ; +0x25, 0x1402be1b5\nmov     rcx, rax                                                       ; +0x2c, 0x1402be1bc\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2f, 0x1402be1bf\nmov     rcx, [rbx+2E0h]                                                ; +0x35, 0x1402be1c5\nmov     rax, [rcx]                                                     ; +0x3c, 0x1402be1cc\ncall    qword ptr [rax+200h]                                           ; +0x3f, 0x1402be1cf\nmov     qword ptr [rbx+2E0h], 0                                        ; +0x45, 0x1402be1d5\nmov     rax, [rbx]                                                     ; +0x50, 0x1402be1e0\nxor     edx, edx                                                       ; +0x53, 0x1402be1e3\nmov     rcx, rbx                                                       ; +0x55, 0x1402be1e5\ncall    qword ptr [rax+3D0h]                                           ; +0x58, 0x1402be1e8\nmov     rax, [rbx]                                                     ; +0x5e, 0x1402be1ee\nmov     dl, 1                                                          ; +0x61, 0x1402be1f1\nmov     rcx, rbx                                                       ; +0x63, 0x1402be1f3\nadd     rsp, 20h                                                       ; +0x66, 0x1402be1f6\npop     rbx                                                            ; +0x6a, 0x1402be1fa\njmp     qword ptr [rax+1F8h]                                           ; +0x6b, 0x1402be1fb", "xrefs": ["InfoLayer::keyBackClicked @ 0x1402be219", "InfoLayer::reloadWindow @ 0x1402bf347", "InfoLayer::init @ 0x1402bbd92", "<???> @ 0x1406d2858"], "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"}