{"type": "func", "start": 5369001376, "end": 5369001454, "name": "CCScrollLayerExt::registerWithTouchDispatcher", "pseudocode": "// \n// CCScrollLayerExt::registerWithTouchDispatcher from 0x1400475a0 to 0x1400475ee (78 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405303b8\n// > <???> @ 0x1406c48d8\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 CCScrollLayerExt::registerWithTouchDispatcher(CCScrollLayerExt *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 = &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, -128, 0);\n}", "assembly": "; \n; CCScrollLayerExt::registerWithTouchDispatcher from 0x1400475a0 to 0x1400475ee (78 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405303b8\n; > <???> @ 0x1406c48d8\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_0], rbx                                               ; +0x0, 0x1400475a0\npush    rdi                                                            ; +0x5, 0x1400475a5\nsub     rsp, 20h                                                       ; +0x6, 0x1400475a6\nmov     rbx, rcx                                                       ; +0xa, 0x1400475aa\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1400475ad\nxor     ecx, ecx                                                       ; +0x13, 0x1400475b3\nlea     rdi, [rbx+140h]                                                ; +0x15, 0x1400475b5\ntest    rbx, rbx                                                       ; +0x1c, 0x1400475bc\nmov     r8, [rax]                                                      ; +0x1f, 0x1400475bf\ncmovz   rdi, rcx                                                       ; +0x22, 0x1400475c2\nmov     rcx, rax                                                       ; +0x26, 0x1400475c6\ncall    qword ptr [r8+90h]                                             ; +0x29, 0x1400475c9\nxor     r9d, r9d                                                       ; +0x30, 0x1400475d0\nmov     rdx, rdi                                                       ; +0x33, 0x1400475d3\nmov     rcx, rax                                                       ; +0x36, 0x1400475d6\nlea     r8d, [r9-80h]                                                  ; +0x39, 0x1400475d9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3d, 0x1400475dd\nadd     rsp, 20h                                                       ; +0x42, 0x1400475e2\npop     rdi                                                            ; +0x46, 0x1400475e6\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x47, 0x1400475e7", "xrefs": ["<???> @ 0x1405303b8", "<???> @ 0x1406c48d8"], "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"}