{"type": "func", "start": 5368964592, "end": 5368964672, "name": "BoomScrollLayer::registerWithTouchDispatcher", "pseudocode": "// \n// BoomScrollLayer::registerWithTouchDispatcher from 0x14003e5f0 to 0x14003e640 (80 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14052ba70\n// > <???> @ 0x140537a90\n// > <???> @ 0x1406c408c\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\n// Merged with: BoomScrollLayer::registerWithTouchDispatcher, TableView::registerWithTouchDispatcher\nvoid __fastcall BoomScrollLayer::registerWithTouchDispatcher(struct cocos2d::CCTouchDelegate *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 + 40;\n  if ( !a1 )\n    v3 = nullptr;\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n  cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(v4, v3, -138, 0);\n}", "assembly": "; \n; BoomScrollLayer::registerWithTouchDispatcher from 0x14003e5f0 to 0x14003e640 (80 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14052ba70\n; > <???> @ 0x140537a90\n; > <???> @ 0x1406c408c\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, 0x14003e5f0\npush    rdi                                                            ; +0x5, 0x14003e5f5\nsub     rsp, 20h                                                       ; +0x6, 0x14003e5f6\nmov     rbx, rcx                                                       ; +0xa, 0x14003e5fa\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x14003e5fd\nxor     ecx, ecx                                                       ; +0x13, 0x14003e603\nlea     rdi, [rbx+140h]                                                ; +0x15, 0x14003e605\ntest    rbx, rbx                                                       ; +0x1c, 0x14003e60c\nmov     r8, [rax]                                                      ; +0x1f, 0x14003e60f\ncmovz   rdi, rcx                                                       ; +0x22, 0x14003e612\nmov     rcx, rax                                                       ; +0x26, 0x14003e616\ncall    qword ptr [r8+90h]                                             ; +0x29, 0x14003e619\nxor     r9d, r9d                                                       ; +0x30, 0x14003e620\nmov     r8d, 0FFFFFF76h                                                ; +0x33, 0x14003e623\nmov     rcx, rax                                                       ; +0x39, 0x14003e629\nmov     rdx, rdi                                                       ; +0x3c, 0x14003e62c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x14003e62f\nadd     rsp, 20h                                                       ; +0x44, 0x14003e634\npop     rdi                                                            ; +0x48, 0x14003e638\njmp     cs:?addPrioTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x49, 0x14003e639", "xrefs": ["<???> @ 0x14052ba70", "<???> @ 0x140537a90", "<???> @ 0x1406c408c"], "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"}