{"type": "func", "start": 6443200048, "end": 6443200179, "name": "cocos2d::CCTouchDispatcher::setPriority", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::setPriority from 0x1800b6e30 to 0x1800b6eb3 (131 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMenu::setHandlerPriority @ 0x18005ba00\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c29d0\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 11:22:22 +0000\n// \n\nvoid __fastcall cocos2d::CCTouchDispatcher::setPriority(\n        cocos2d::CCTouchDispatcher *this,\n        int a2,\n        struct cocos2d::CCTouchDelegate *a3)\n{\n  cocos2d::CCTouchHandler *Handler; // rsi\n\n  Handler = cocos2d::CCTouchDispatcher::findHandler(this, a3);\n  if ( (unsigned int)cocos2d::CCNotificationCenter::getScriptHandler(Handler) != a2 )\n  {\n    cocos2d::CCTouchHandler::setPriority(Handler, a2);\n    sub_1800023B0(\n      *(char **)(*(_QWORD *)(*((_QWORD *)this + 8) + 56LL) + 16LL),\n      (__int64 *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 8) + 56LL) + 16LL)\n                + 8LL * **(unsigned int **)(*((_QWORD *)this + 8) + 56LL)),\n      **(unsigned int **)(*((_QWORD *)this + 8) + 56LL),\n      (unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800B6A80);\n    sub_1800023B0(\n      *(char **)(*(_QWORD *)(*((_QWORD *)this + 9) + 56LL) + 16LL),\n      (__int64 *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 9) + 56LL) + 16LL)\n                + 8LL * **(unsigned int **)(*((_QWORD *)this + 9) + 56LL)),\n      **(unsigned int **)(*((_QWORD *)this + 9) + 56LL),\n      (unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800B6A80);\n  }\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::setPriority from 0x1800b6e30 to 0x1800b6eb3 (131 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMenu::setHandlerPriority @ 0x18005ba00\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c29d0\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 11:22:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b6e30\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b6e35\npush    rdi                                                            ; +0xa, 0x1800b6e3a\nsub     rsp, 20h                                                       ; +0xb, 0x1800b6e3b\nmov     edi, edx                                                       ; +0xf, 0x1800b6e3f\nmov     rbx, rcx                                                       ; +0x11, 0x1800b6e41\nmov     rdx, r8; struct cocos2d::CCTouchDelegate *                     ; +0x14, 0x1800b6e44\ncall    ?findHandler@CCTouchDispatcher@cocos2d@@QEAAPEAVCCTouchHandler@2@PEAVCCTouchDelegate@2@@Z; cocos2d::CCTouchDispatcher::findHandler(cocos2d::CCTouchDelegate *) ; +0x17, 0x1800b6e47\nmov     rcx, rax; this                                                 ; +0x1c, 0x1800b6e4c\nmov     rsi, rax                                                       ; +0x1f, 0x1800b6e4f\ncall    ?getScriptHandler@CCNotificationCenter@cocos2d@@QEAAHXZ; cocos2d::CCNotificationCenter::getScriptHandler(void) ; +0x22, 0x1800b6e52\ncmp     eax, edi                                                       ; +0x27, 0x1800b6e57\njz      short loc_1800B6EA3                                            ; +0x29, 0x1800b6e59\nmov     edx, edi; int                                                  ; +0x2b, 0x1800b6e5b\nmov     rcx, rsi; this                                                 ; +0x2d, 0x1800b6e5d\ncall    ?setPriority@CCTouchHandler@cocos2d@@QEAAXH@Z; cocos2d::CCTouchHandler::setPriority(int) ; +0x30, 0x1800b6e60\nmov     rax, [rbx+40h]                                                 ; +0x35, 0x1800b6e65\nlea     r9, sub_1800B6A80                                              ; +0x39, 0x1800b6e69\nmov     rdx, [rax+38h]                                                 ; +0x40, 0x1800b6e70\nmov     rcx, [rdx+10h]                                                 ; +0x44, 0x1800b6e74\nmov     r8d, [rdx]                                                     ; +0x48, 0x1800b6e78\nlea     rdx, [rcx+r8*8]                                                ; +0x4b, 0x1800b6e7b\ncall    sub_1800023B0                                                  ; +0x4f, 0x1800b6e7f\nmov     rax, [rbx+48h]                                                 ; +0x54, 0x1800b6e84\nlea     r9, sub_1800B6A80                                              ; +0x58, 0x1800b6e88\nmov     rdx, [rax+38h]                                                 ; +0x5f, 0x1800b6e8f\nmov     rcx, [rdx+10h]                                                 ; +0x63, 0x1800b6e93\nmov     r8d, [rdx]                                                     ; +0x67, 0x1800b6e97\nlea     rdx, [rcx+r8*8]                                                ; +0x6a, 0x1800b6e9a\ncall    sub_1800023B0                                                  ; +0x6e, 0x1800b6e9e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x73, 0x1800b6ea3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x78, 0x1800b6ea8\nadd     rsp, 20h                                                       ; +0x7d, 0x1800b6ead\npop     rdi                                                            ; +0x81, 0x1800b6eb1\nretn                                                                   ; +0x82, 0x1800b6eb2", "xrefs": ["cocos2d::CCMenu::setHandlerPriority @ 0x18005ba00", "<???> @ 0x18014cf68", "<???> @ 0x1801c29d0"], "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"}