{"type": "func", "start": 5373281616, "end": 5373281787, "name": "BrowseSmartKeyLayer::onBack", "pseudocode": "// \n// BrowseSmartKeyLayer::onBack from 0x14045c550 to 0x14045c5fb (171 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405f6010\n// > <???> @ 0x1406dac40\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// Hidden C++ exception states: #wind=1\nvoid BrowseSmartKeyLayer::onBack(BrowseSmartKeyLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  _BOOL8 v5; // rdx\n  GJSmartTemplate *m_template; // rdi\n  BrowseSmartTemplateLayer *v7; // rax\n  SmartBrowseFilter v8; // r8d\n  cocos2d::CCObject *v9; // rbx\n  BrowseSmartTemplateLayer *v10; // [rsp+30h] [rbp+8h]\n\n  v3 = cocos2d::CCDirector::sharedDirector(a1);\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n  m_template = a1->m_template;\n  v10 = (BrowseSmartTemplateLayer *)operator new(0x2A8u);\n  v7 = BrowseSmartTemplateLayer::BrowseSmartTemplateLayer(v10);\n  v9 = v7;\n  if ( v7 )\n  {\n    if ( BrowseSmartTemplateLayer::init(v7, m_template, v8) )\n    {\n      cocos2d::CCObject::autorelease(v9);\n    }\n    else\n    {\n      ((void (__fastcall *)(cocos2d::CCObject *, __int64))v9->~CCObject)(v9, 1);\n      v9 = nullptr;\n    }\n  }\n  ((void (__fastcall *)(cocos2d::CCObject *))v9->__vftable[14].update)(v9);\n}", "assembly": "; \n; BrowseSmartKeyLayer::onBack from 0x14045c550 to 0x14045c5fb (171 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405f6010\n; > <???> @ 0x1406dac40\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14045c550\npush    rdi                                                            ; +0x5, 0x14045c555\nsub     rsp, 20h                                                       ; +0x6, 0x14045c556\nmov     rbx, rcx                                                       ; +0xa, 0x14045c55a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x14045c55d\nmov     rdx, [rax]                                                     ; +0x13, 0x14045c563\nmov     rcx, rax                                                       ; +0x16, 0x14045c566\ncall    qword ptr [rdx+90h]                                            ; +0x19, 0x14045c569\nmov     rcx, rax                                                       ; +0x1f, 0x14045c56f\nmov     rdx, rbx                                                       ; +0x22, 0x14045c572\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x25, 0x14045c575\nmov     rax, [rbx]                                                     ; +0x2b, 0x14045c57b\nxor     edx, edx                                                       ; +0x2e, 0x14045c57e\nmov     rcx, rbx                                                       ; +0x30, 0x14045c580\ncall    qword ptr [rax+3D0h]                                           ; +0x33, 0x14045c583\nmov     rax, [rbx]                                                     ; +0x39, 0x14045c589\nmov     dl, 1                                                          ; +0x3c, 0x14045c58c\nmov     rcx, rbx                                                       ; +0x3e, 0x14045c58e\ncall    qword ptr [rax+1F8h]                                           ; +0x41, 0x14045c591\nmov     rdi, [rbx+278h]                                                ; +0x47, 0x14045c597\nmov     ecx, 2A8h; Size                                                ; +0x4e, 0x14045c59e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x53, 0x14045c5a3\nmov     [rsp+28h+arg_0], rax                                           ; +0x58, 0x14045c5a8\nmov     rcx, rax                                                       ; +0x5d, 0x14045c5ad\ncall    BrowseSmartTemplateLayer__BrowseSmartTemplateLayer             ; +0x60, 0x14045c5b0\nmov     rbx, rax                                                       ; +0x65, 0x14045c5b5\ntest    rax, rax                                                       ; +0x68, 0x14045c5b8\njz      short loc_14045C5E4                                            ; +0x6b, 0x14045c5bb\nmov     rdx, rdi                                                       ; +0x6d, 0x14045c5bd\nmov     rcx, rax                                                       ; +0x70, 0x14045c5c0\ncall    BrowseSmartTemplateLayer__init                                 ; +0x73, 0x14045c5c3\nmov     rcx, rbx                                                       ; +0x78, 0x14045c5c8\ntest    al, al                                                         ; +0x7b, 0x14045c5cb\njz      short loc_14045C5D7                                            ; +0x7d, 0x14045c5cd\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7f, 0x14045c5cf\njmp     short loc_14045C5E4                                            ; +0x85, 0x14045c5d5\nmov     rax, [rbx]                                                     ; +0x87, 0x14045c5d7\nmov     edx, 1                                                         ; +0x8a, 0x14045c5da\ncall    qword ptr [rax+8]                                              ; +0x8f, 0x14045c5df\nxor     ebx, ebx                                                       ; +0x92, 0x14045c5e2\nmov     rax, [rbx]                                                     ; +0x94, 0x14045c5e4\nmov     rcx, rbx                                                       ; +0x97, 0x14045c5e7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9a, 0x14045c5ea\nadd     rsp, 20h                                                       ; +0x9f, 0x14045c5ef\npop     rdi                                                            ; +0xa3, 0x14045c5f3\njmp     qword ptr [rax+410h]                                           ; +0xa4, 0x14045c5f4", "xrefs": ["<???> @ 0x1405f6010", "<???> @ 0x1406dac40"], "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"}