{"type": "func", "start": 5369017264, "end": 5369017347, "name": "CCScrollLayerExt::registerWithTouchDispatcher", "pseudocode": "// \n// CCScrollLayerExt::registerWithTouchDispatcher from 0x14004b3b0 to 0x14004b403 (83 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14070b020\n// > <???> @ 0x14090fddc\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:25:33 +0000\n// \n\nvoid __fastcall CCScrollLayerExt::registerWithTouchDispatcher(__int64 a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCTouchDelegate *v3; // rdi\n  cocos2d::CCTouchDispatcher *v4; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\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, -128, 0);\n}", "assembly": "; \n; CCScrollLayerExt::registerWithTouchDispatcher from 0x14004b3b0 to 0x14004b403 (83 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14070b020\n; > <???> @ 0x14090fddc\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:25:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14004b3b0\npush    rdi                                                            ; +0x5, 0x14004b3b5\nsub     rsp, 20h                                                       ; +0x6, 0x14004b3b6\nmov     rbx, rcx                                                       ; +0xa, 0x14004b3ba\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x14004b3bd\nxor     ecx, ecx                                                       ; +0x13, 0x14004b3c3\nlea     rdi, [rbx+140h]                                                ; +0x15, 0x14004b3c5\ntest    rbx, rbx                                                       ; +0x1c, 0x14004b3cc\ncmovz   rdi, rcx                                                       ; +0x1f, 0x14004b3cf\nmov     rcx, [rax]                                                     ; +0x23, 0x14004b3d3\nmov     r8, [rcx+90h]                                                  ; +0x26, 0x14004b3d6\nmov     rcx, rax                                                       ; +0x2d, 0x14004b3dd\ncall    r8                                                             ; +0x30, 0x14004b3e0\nmov     rcx, rax                                                       ; +0x33, 0x14004b3e3\nxor     r9d, r9d                                                       ; +0x36, 0x14004b3e6\nmov     r8d, 0FFFFFF80h                                                ; +0x39, 0x14004b3e9\nmov     rdx, rdi                                                       ; +0x3f, 0x14004b3ef\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x42, 0x14004b3f2\nadd     rsp, 20h                                                       ; +0x47, 0x14004b3f7\npop     rdi                                                            ; +0x4b, 0x14004b3fb\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x4c, 0x14004b3fc", "xrefs": ["<???> @ 0x14070b020", "<???> @ 0x14090fddc"], "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"}