{"type": "func", "start": 4300121952, "end": 4300122029, "name": "BrowseSmartTemplateLayer::onClose", "pseudocode": "// \n// BrowseSmartTemplateLayer::onClose from 0x1004ea760 to 0x1004ea7ad (77 bytes)\n// \n// 0 xrefs:\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 __fastcall BrowseSmartTemplateLayer::onClose(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v2->getTouchDispatcher)(\n                                       v2,\n                                       a2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  ((void (__fastcall *)(BrowseSmartTemplateLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(BrowseSmartTemplateLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; BrowseSmartTemplateLayer::onClose from 0x1004ea760 to 0x1004ea7ad (77 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1004ea760\nmov     rbp, rsp                                                       ; +0x1, 0x1004ea761\npush    rbx                                                            ; +0x4, 0x1004ea764\npush    rax                                                            ; +0x5, 0x1004ea765\nmov     rbx, rdi                                                       ; +0x6, 0x1004ea766\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x9, 0x1004ea769\nmov     rcx, [rax]                                                     ; +0xe, 0x1004ea76e\nmov     rdi, rax                                                       ; +0x11, 0x1004ea771\ncall    qword ptr [rcx+0A0h]                                           ; +0x14, 0x1004ea774\nmov     rdi, rax                                                       ; +0x1a, 0x1004ea77a\nmov     rsi, rbx                                                       ; +0x1d, 0x1004ea77d\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x20, 0x1004ea780\nmov     rax, [rbx]                                                     ; +0x25, 0x1004ea785\nmov     rdi, rbx                                                       ; +0x28, 0x1004ea788\nxor     esi, esi                                                       ; +0x2b, 0x1004ea78b\ncall    qword ptr [rax+420h]                                           ; +0x2d, 0x1004ea78d\nmov     rax, [rbx]                                                     ; +0x33, 0x1004ea793\nmov     rax, [rax+200h]                                                ; +0x36, 0x1004ea796\nmov     rdi, rbx                                                       ; +0x3d, 0x1004ea79d\nmov     esi, 1                                                         ; +0x40, 0x1004ea7a0\nadd     rsp, 8                                                         ; +0x45, 0x1004ea7a5\npop     rbx                                                            ; +0x49, 0x1004ea7a9\npop     rbp                                                            ; +0x4a, 0x1004ea7aa\njmp     rax                                                            ; +0x4b, 0x1004ea7ab", "xrefs": [], "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"}