{"type": "func", "start": 5374943632, "end": 5374943803, "name": "BrowseSmartKeyLayer::onBack", "pseudocode": "// \n// BrowseSmartKeyLayer::onBack from 0x1405f2190 to 0x1405f223b (171 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140805508\n// > <???> @ 0x14092f30c\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:35:06 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall BrowseSmartKeyLayer::onBack(struct cocos2d::CCObject *a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  __int64 v4; // rdx\n  cocos2d::CCObject *v5; // rdi\n  __int64 v6; // rax\n  cocos2d::CCObject *v7; // rbx\n  void *v9; // [rsp+30h] [rbp+8h]\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  (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v4) = 1;\n  (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v4);\n  v5 = *((cocos2d::CCObject **)a1 + 83);\n  v9 = operator new(0x2C8u);\n  v6 = BrowseSmartTemplateLayer::BrowseSmartTemplateLayer((__int64)v9);\n  v7 = (cocos2d::CCObject *)v6;\n  if ( v6 )\n  {\n    if ( BrowseSmartTemplateLayer::init(v6, v5) )\n    {\n      cocos2d::CCObject::autorelease(v7);\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n      v7 = nullptr;\n    }\n  }\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7);\n}", "assembly": "; \n; BrowseSmartKeyLayer::onBack from 0x1405f2190 to 0x1405f223b (171 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140805508\n; > <???> @ 0x14092f30c\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:35:06 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1405f2190\npush    rdi                                                            ; +0x5, 0x1405f2195\nsub     rsp, 20h                                                       ; +0x6, 0x1405f2196\nmov     rbx, rcx                                                       ; +0xa, 0x1405f219a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1405f219d\nmov     rdx, [rax]                                                     ; +0x13, 0x1405f21a3\nmov     rcx, rax                                                       ; +0x16, 0x1405f21a6\ncall    qword ptr [rdx+90h]                                            ; +0x19, 0x1405f21a9\nmov     rcx, rax                                                       ; +0x1f, 0x1405f21af\nmov     rdx, rbx                                                       ; +0x22, 0x1405f21b2\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x25, 0x1405f21b5\nmov     rax, [rbx]                                                     ; +0x2b, 0x1405f21bb\nxor     edx, edx                                                       ; +0x2e, 0x1405f21be\nmov     rcx, rbx                                                       ; +0x30, 0x1405f21c0\ncall    qword ptr [rax+3E0h]                                           ; +0x33, 0x1405f21c3\nmov     rax, [rbx]                                                     ; +0x39, 0x1405f21c9\nmov     dl, 1                                                          ; +0x3c, 0x1405f21cc\nmov     rcx, rbx                                                       ; +0x3e, 0x1405f21ce\ncall    qword ptr [rax+208h]                                           ; +0x41, 0x1405f21d1\nmov     rdi, [rbx+298h]                                                ; +0x47, 0x1405f21d7\nmov     ecx, 2C8h; Size                                                ; +0x4e, 0x1405f21de\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x53, 0x1405f21e3\nmov     [rsp+28h+arg_0], rax                                           ; +0x58, 0x1405f21e8\nmov     rcx, rax                                                       ; +0x5d, 0x1405f21ed\ncall    BrowseSmartTemplateLayer__BrowseSmartTemplateLayer             ; +0x60, 0x1405f21f0\nmov     rbx, rax                                                       ; +0x65, 0x1405f21f5\ntest    rax, rax                                                       ; +0x68, 0x1405f21f8\njz      short loc_1405F2224                                            ; +0x6b, 0x1405f21fb\nmov     rdx, rdi                                                       ; +0x6d, 0x1405f21fd\nmov     rcx, rax                                                       ; +0x70, 0x1405f2200\ncall    BrowseSmartTemplateLayer__init                                 ; +0x73, 0x1405f2203\nmov     rcx, rbx                                                       ; +0x78, 0x1405f2208\ntest    al, al                                                         ; +0x7b, 0x1405f220b\njz      short loc_1405F2217                                            ; +0x7d, 0x1405f220d\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7f, 0x1405f220f\njmp     short loc_1405F2224                                            ; +0x85, 0x1405f2215\nmov     rax, [rbx]                                                     ; +0x87, 0x1405f2217\nmov     edx, 1                                                         ; +0x8a, 0x1405f221a\ncall    qword ptr [rax+8]                                              ; +0x8f, 0x1405f221f\nxor     ebx, ebx                                                       ; +0x92, 0x1405f2222\nmov     rax, [rbx]                                                     ; +0x94, 0x1405f2224\nmov     rcx, rbx                                                       ; +0x97, 0x1405f2227\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9a, 0x1405f222a\nadd     rsp, 20h                                                       ; +0x9f, 0x1405f222f\npop     rdi                                                            ; +0xa3, 0x1405f2233\njmp     qword ptr [rax+428h]                                           ; +0xa4, 0x1405f2234", "xrefs": ["<???> @ 0x140805508", "<???> @ 0x14092f30c"], "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"}