{"type": "func", "start": 6442780832, "end": 6442780930, "name": "cocos2d::CCLayer::registerScriptTouchHandler", "pseudocode": "// \n// cocos2d::CCLayer::registerScriptTouchHandler from 0x1800508a0 to 0x180050902 (98 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800ed260\n// > <???> @ 0x1800ed720\n// > <???> @ 0x1800edc58\n// > <???> @ 0x1800ee1c0\n// > <???> @ 0x1800ee798\n// > <???> @ 0x1800f7068\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2028\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 __fastcall cocos2d::CCLayer::registerScriptTouchHandler(\n        cocos2d::CCLayer *this,\n        unsigned int a2,\n        unsigned __int8 a3,\n        unsigned int a4,\n        bool a5)\n{\n  cocos2d::CCTouchScriptHandlerEntry *v9; // rax\n\n  ((void (__fastcall *)(cocos2d::CCLayer *))this->unregisterScriptTouchHandler)(this);\n  v9 = (cocos2d::CCTouchScriptHandlerEntry *)sub_1800B6880(a2, a3, a4, a5);\n  this->m_pScriptTouchHandlerEntry = v9;\n  cocos2d::CCObject::retain(v9);\n}", "assembly": "; \n; cocos2d::CCLayer::registerScriptTouchHandler from 0x1800508a0 to 0x180050902 (98 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800ed260\n; > <???> @ 0x1800ed720\n; > <???> @ 0x1800edc58\n; > <???> @ 0x1800ee1c0\n; > <???> @ 0x1800ee798\n; > <???> @ 0x1800f7068\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2028\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, 0x1800508a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800508a5\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1800508aa\npush    r14                                                            ; +0xf, 0x1800508af\nsub     rsp, 20h                                                       ; +0x11, 0x1800508b1\nmov     rax, [rcx]                                                     ; +0x15, 0x1800508b5\nmov     ebx, r9d                                                       ; +0x18, 0x1800508b8\nmovzx   edi, r8b                                                       ; +0x1b, 0x1800508bb\nmov     esi, edx                                                       ; +0x1f, 0x1800508bf\nmov     r14, rcx                                                       ; +0x21, 0x1800508c1\ncall    qword ptr [rax+378h]                                           ; +0x24, 0x1800508c4\nmovzx   r9d, [rsp+28h+arg_20]                                          ; +0x2a, 0x1800508ca\nmov     r8d, ebx                                                       ; +0x30, 0x1800508d0\nmovzx   edx, dil                                                       ; +0x33, 0x1800508d3\nmov     ecx, esi                                                       ; +0x37, 0x1800508d7\ncall    sub_1800B6880                                                  ; +0x39, 0x1800508d9\nmov     rcx, rax; this                                                 ; +0x3e, 0x1800508de\nmov     [r14+170h], rax                                                ; +0x41, 0x1800508e1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x48, 0x1800508e8\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4d, 0x1800508ed\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x52, 0x1800508f2\nadd     rsp, 20h                                                       ; +0x57, 0x1800508f7\npop     r14                                                            ; +0x5b, 0x1800508fb\njmp     ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x5d, 0x1800508fd", "xrefs": ["<???> @ 0x1800ed260", "<???> @ 0x1800ed720", "<???> @ 0x1800edc58", "<???> @ 0x1800ee1c0", "<???> @ 0x1800ee798", "<???> @ 0x1800f7068", "<???> @ 0x1801438a8", "<???> @ 0x1801b2028"], "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"}