{"type": "func", "start": 5371657680, "end": 5371657782, "name": "LevelBrowserLayer::registerWithTouchDispatcher", "pseudocode": "// \n// LevelBrowserLayer::registerWithTouchDispatcher from 0x1402cfdd0 to 0x1402cfe36 (102 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1405850d0\n// > <???> @ 0x140589cc8\n// > <???> @ 0x14068da5c\n// > <???> @ 0x14068da6c\n// > <???> @ 0x1406d2e58\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 LevelBrowserLayer::registerWithTouchDispatcher(LevelBrowserLayer *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCTouchDelegate *v3; // rbx\n  cocos2d::CCTouchDispatcher *v4; // rax\n\n  if ( a1->m_isOverlay )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = &a1->cocos2d::CCTouchDelegate;\n    if ( !a1 )\n      v3 = nullptr;\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n    cocos2d::CCTouchDispatcher::addTargetedDelegate(v4, v3, -500, 1);\n  }\n  else\n  {\n    cocos2d::CCLayer::registerWithTouchDispatcher(a1);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::registerWithTouchDispatcher from 0x1402cfdd0 to 0x1402cfe36 (102 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1405850d0\n; > <???> @ 0x140589cc8\n; > <???> @ 0x14068da5c\n; > <???> @ 0x14068da6c\n; > <???> @ 0x1406d2e58\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    rdi                                                            ; +0x0, 0x1402cfdd0\nsub     rsp, 20h                                                       ; +0x2, 0x1402cfdd2\ncmp     byte ptr [rcx+2ECh], 0                                         ; +0x6, 0x1402cfdd6\nmov     rdi, rcx                                                       ; +0xd, 0x1402cfddd\njz      short loc_1402CFE2A                                            ; +0x10, 0x1402cfde0\nmov     [rsp+28h+arg_0], rbx                                           ; +0x12, 0x1402cfde2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17, 0x1402cfde7\nxor     ecx, ecx                                                       ; +0x1d, 0x1402cfded\nlea     rbx, [rdi+140h]                                                ; +0x1f, 0x1402cfdef\ntest    rdi, rdi                                                       ; +0x26, 0x1402cfdf6\nmov     r8, [rax]                                                      ; +0x29, 0x1402cfdf9\ncmovz   rbx, rcx                                                       ; +0x2c, 0x1402cfdfc\nmov     rcx, rax                                                       ; +0x30, 0x1402cfe00\ncall    qword ptr [r8+90h]                                             ; +0x33, 0x1402cfe03\nmov     r9b, 1                                                         ; +0x3a, 0x1402cfe0a\nmov     r8d, 0FFFFFE0Ch                                                ; +0x3d, 0x1402cfe0d\nmov     rcx, rax                                                       ; +0x43, 0x1402cfe13\nmov     rdx, rbx                                                       ; +0x46, 0x1402cfe16\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x49, 0x1402cfe19\nadd     rsp, 20h                                                       ; +0x4e, 0x1402cfe1e\npop     rdi                                                            ; +0x52, 0x1402cfe22\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x53, 0x1402cfe23\nadd     rsp, 20h                                                       ; +0x5a, 0x1402cfe2a\npop     rdi                                                            ; +0x5e, 0x1402cfe2e\njmp     cs:__imp_?registerWithTouchDispatcher@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::registerWithTouchDispatcher(void) ; +0x5f, 0x1402cfe2f", "xrefs": ["<???> @ 0x1405850d0", "<???> @ 0x140589cc8", "<???> @ 0x14068da5c", "<???> @ 0x14068da6c", "<???> @ 0x1406d2e58"], "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"}