{"type": "func", "start": 6442524736, "end": 6442524861, "name": "cocos2d::extension::CCScrollView::registerWithTouchDispatcher", "pseudocode": "// \n// cocos2d::extension::CCScrollView::registerWithTouchDispatcher from 0x180012040 to 0x1800120bd (125 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18002ad30\n// > <???> @ 0x18002b2c8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c23c\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 12:15:40 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCScrollView::registerWithTouchDispatcher(\n        cocos2d::extension::CCScrollView *this,\n        __int64 a2)\n{\n  __int64 v3; // r14\n  __int64 (__fastcall *v4)(__int64); // rdi\n  struct cocos2d::CCTouchDelegate *v5; // rbx\n  int TouchPriority; // esi\n  cocos2d::CCTouchDispatcher *v7; // rax\n\n  v3 = cocos2d::CCDirector::sharedDirector(this, a2);\n  v4 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL);\n  v5 = (cocos2d::extension::CCScrollView *)((char *)this + 320);\n  TouchPriority = cocos2d::CCLayer::getTouchPriority(this);\n  if ( !this )\n    v5 = nullptr;\n  v7 = (cocos2d::CCTouchDispatcher *)v4(v3);\n  cocos2d::CCTouchDispatcher::addTargetedDelegate(v7, v5, TouchPriority, 0);\n}", "assembly": "; \n; cocos2d::extension::CCScrollView::registerWithTouchDispatcher from 0x180012040 to 0x1800120bd (125 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18002ad30\n; > <???> @ 0x18002b2c8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c23c\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 12:15:40 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180012040\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180012045\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18001204a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18001204f\npush    r14                                                            ; +0x14, 0x180012054\nsub     rsp, 20h                                                       ; +0x16, 0x180012056\nmov     rbp, rcx                                                       ; +0x1a, 0x18001205a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d, 0x18001205d\nmov     rcx, rbp                                                       ; +0x23, 0x180012063\nmov     r14, rax                                                       ; +0x26, 0x180012066\nmov     rdx, [rax]                                                     ; +0x29, 0x180012069\nmov     rdi, [rdx+90h]                                                 ; +0x2c, 0x18001206c\ncall    cs:__imp_?getTouchPriority@CCLayer@cocos2d@@UEAAHXZ; cocos2d::CCLayer::getTouchPriority(void) ; +0x33, 0x180012073\nlea     rbx, [rbp+140h]                                                ; +0x39, 0x180012079\nmov     rcx, r14                                                       ; +0x40, 0x180012080\nmov     esi, eax                                                       ; +0x43, 0x180012083\nxor     eax, eax                                                       ; +0x45, 0x180012085\ntest    rbp, rbp                                                       ; +0x47, 0x180012087\ncmovz   rbx, rax                                                       ; +0x4a, 0x18001208a\ncall    rdi                                                            ; +0x4e, 0x18001208e\nmov     rcx, rax                                                       ; +0x50, 0x180012090\nxor     r9d, r9d                                                       ; +0x53, 0x180012093\nmov     r8d, esi                                                       ; +0x56, 0x180012096\nmov     rdx, rbx                                                       ; +0x59, 0x180012099\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x18001209c\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x61, 0x1800120a1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x66, 0x1800120a6\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x6b, 0x1800120ab\nadd     rsp, 20h                                                       ; +0x70, 0x1800120b0\npop     r14                                                            ; +0x74, 0x1800120b4\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x76, 0x1800120b6", "xrefs": ["<???> @ 0x18002ad30", "<???> @ 0x18002b2c8", "<???> @ 0x180032408", "<???> @ 0x18004c23c"], "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"}