{"type": "func", "start": 5372818896, "end": 5372819001, "name": "LevelBrowserLayer::registerWithTouchDispatcher", "pseudocode": "// \n// LevelBrowserLayer::registerWithTouchDispatcher from 0x1403eb5d0 to 0x1403eb639 (105 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x140789e38\n// > <???> @ 0x14078f800\n// > <???> @ 0x1408c5240\n// > <???> @ 0x1408c5250\n// > <???> @ 0x1409251cc\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:31:45 +0000\n// \n\nvoid __fastcall LevelBrowserLayer::registerWithTouchDispatcher(_BYTE *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCTouchDelegate *v3; // rbx\n  cocos2d::CCTouchDispatcher *v4; // rax\n\n  if ( a1[748] )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = (struct cocos2d::CCTouchDelegate *)(a1 + 320);\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((cocos2d::CCLayer *)a1);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::registerWithTouchDispatcher from 0x1403eb5d0 to 0x1403eb639 (105 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x140789e38\n; > <???> @ 0x14078f800\n; > <???> @ 0x1408c5240\n; > <???> @ 0x1408c5250\n; > <???> @ 0x1409251cc\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:31:45 +0000\n; \npush    rdi                                                            ; +0x0, 0x1403eb5d0\nsub     rsp, 20h                                                       ; +0x2, 0x1403eb5d2\ncmp     byte ptr [rcx+2ECh], 0                                         ; +0x6, 0x1403eb5d6\nmov     rdi, rcx                                                       ; +0xd, 0x1403eb5dd\njz      short loc_1403EB62D                                            ; +0x10, 0x1403eb5e0\nmov     [rsp+28h+arg_0], rbx                                           ; +0x12, 0x1403eb5e2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17, 0x1403eb5e7\nxor     ecx, ecx                                                       ; +0x1d, 0x1403eb5ed\nlea     rbx, [rdi+140h]                                                ; +0x1f, 0x1403eb5ef\ntest    rdi, rdi                                                       ; +0x26, 0x1403eb5f6\ncmovz   rbx, rcx                                                       ; +0x29, 0x1403eb5f9\nmov     rcx, [rax]                                                     ; +0x2d, 0x1403eb5fd\nmov     r8, [rcx+90h]                                                  ; +0x30, 0x1403eb600\nmov     rcx, rax                                                       ; +0x37, 0x1403eb607\ncall    r8                                                             ; +0x3a, 0x1403eb60a\nmov     rcx, rax                                                       ; +0x3d, 0x1403eb60d\nmov     r9b, 1                                                         ; +0x40, 0x1403eb610\nmov     r8d, 0FFFFFE0Ch                                                ; +0x43, 0x1403eb613\nmov     rdx, rbx                                                       ; +0x49, 0x1403eb619\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4c, 0x1403eb61c\nadd     rsp, 20h                                                       ; +0x51, 0x1403eb621\npop     rdi                                                            ; +0x55, 0x1403eb625\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x56, 0x1403eb626\nadd     rsp, 20h                                                       ; +0x5d, 0x1403eb62d\npop     rdi                                                            ; +0x61, 0x1403eb631\njmp     cs:__imp_?registerWithTouchDispatcher@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::registerWithTouchDispatcher(void) ; +0x62, 0x1403eb632", "xrefs": ["<???> @ 0x140789e38", "<???> @ 0x14078f800", "<???> @ 0x1408c5240", "<???> @ 0x1408c5250", "<???> @ 0x1409251cc"], "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"}