{"type": "func", "start": 4295436280, "end": 4295436368, "name": "BrowseSmartTemplateLayer::onClose", "pseudocode": "// \n// BrowseSmartTemplateLayer::onClose from 0x1000727f8 to 0x100072850 (88 bytes)\n// \n// 3 xrefs:\n// > BrowseSmartTemplateLayer::onTemplateObject @ 0x100072278\n// > BrowseSmartTemplateLayer::onBack @ 0x1000729dc\n// > BrowseSmartKeyLayer::onBack @ 0x100073afc\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 *v3; // x0\n  cocos2d::CCTouchDispatcher *v4; // x0\n\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, 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 0x1000727f8 to 0x100072850 (88 bytes)\n; \n; 3 xrefs:\n; > BrowseSmartTemplateLayer::onTemplateObject @ 0x100072278\n; > BrowseSmartTemplateLayer::onBack @ 0x1000729dc\n; > BrowseSmartKeyLayer::onBack @ 0x100073afc\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000727f8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000727fc\nADD             X29, SP, #0x10                                         ; +0x8, 0x100072800\nMOV             X19, X0                                                ; +0xc, 0x100072804\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x10, 0x100072808\nLDR             X8, [X0]                                               ; +0x14, 0x10007280c\nLDR             X8, [X8,#0xA0]                                         ; +0x18, 0x100072810\nBLR             X8                                                     ; +0x1c, 0x100072814\nMOV             X1, X19                                                ; +0x20, 0x100072818\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x24, 0x10007281c\nLDR             X8, [X19]                                              ; +0x28, 0x100072820\nLDR             X8, [X8,#0x420]                                        ; +0x2c, 0x100072824\nMOV             X0, X19                                                ; +0x30, 0x100072828\nMOV             W1, #0                                                 ; +0x34, 0x10007282c\nBLR             X8                                                     ; +0x38, 0x100072830\nLDR             X8, [X19]                                              ; +0x3c, 0x100072834\nLDR             X2, [X8,#0x200]                                        ; +0x40, 0x100072838\nMOV             X0, X19                                                ; +0x44, 0x10007283c\nMOV             W1, #1                                                 ; +0x48, 0x100072840\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x100072844\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x100072848\nBR              X2                                                     ; +0x54, 0x10007284c", "xrefs": ["BrowseSmartTemplateLayer::onTemplateObject @ 0x100072278", "BrowseSmartTemplateLayer::onBack @ 0x1000729dc", "BrowseSmartKeyLayer::onBack @ 0x100073afc"], "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"}