{"type": "func", "start": 5369042240, "end": 5369042320, "name": "CCTextInputNode::registerWithTouchDispatcher", "pseudocode": "// \n// CCTextInputNode::registerWithTouchDispatcher from 0x140051540 to 0x140051590 (80 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140532280\n// > <???> @ 0x1406c4da0\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 CCTextInputNode::registerWithTouchDispatcher(CCTextInputNode *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::addPrioTargetedDelegate(v4, v3, -500, 0);\n}", "assembly": "; \n; CCTextInputNode::registerWithTouchDispatcher from 0x140051540 to 0x140051590 (80 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140532280\n; > <???> @ 0x1406c4da0\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, 0x140051540\npush    rdi                                                            ; +0x5, 0x140051545\nsub     rsp, 20h                                                       ; +0x6, 0x140051546\nmov     rbx, rcx                                                       ; +0xa, 0x14005154a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x14005154d\nxor     ecx, ecx                                                       ; +0x13, 0x140051553\nlea     rdi, [rbx+140h]                                                ; +0x15, 0x140051555\ntest    rbx, rbx                                                       ; +0x1c, 0x14005155c\nmov     r8, [rax]                                                      ; +0x1f, 0x14005155f\ncmovz   rdi, rcx                                                       ; +0x22, 0x140051562\nmov     rcx, rax                                                       ; +0x26, 0x140051566\ncall    qword ptr [r8+90h]                                             ; +0x29, 0x140051569\nxor     r9d, r9d                                                       ; +0x30, 0x140051570\nmov     r8d, 0FFFFFE0Ch                                                ; +0x33, 0x140051573\nmov     rcx, rax                                                       ; +0x39, 0x140051579\nmov     rdx, rdi                                                       ; +0x3c, 0x14005157c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x14005157f\nadd     rsp, 20h                                                       ; +0x44, 0x140051584\npop     rdi                                                            ; +0x48, 0x140051588\njmp     cs:?addPrioTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x49, 0x140051589", "xrefs": ["<???> @ 0x140532280", "<???> @ 0x1406c4da0"], "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"}