{"type": "func", "start": 6442817920, "end": 6442817989, "name": "cocos2d::CCMenu::setHandlerPriority", "pseudocode": "// \n// cocos2d::CCMenu::setHandlerPriority from 0x180059980 to 0x1800599c5 (69 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2b8c\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::CCMenu::setHandlerPriority(cocos2d::CCMenu *this, int a2)\n{\n  struct cocos2d::CCDirector *v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  struct cocos2d::CCTouchDelegate *v6; // r8\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v4->getTouchDispatcher)(v4);\n  v6 = &this->cocos2d::CCTouchDelegate;\n  if ( !this )\n    v6 = nullptr;\n  cocos2d::CCTouchDispatcher::setPriority(v5, a2, v6);\n}", "assembly": "; \n; cocos2d::CCMenu::setHandlerPriority from 0x180059980 to 0x1800599c5 (69 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2b8c\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, 0x180059980\npush    rdi                                                            ; +0x5, 0x180059985\nsub     rsp, 20h                                                       ; +0x6, 0x180059986\nmov     edi, edx                                                       ; +0xa, 0x18005998a\nmov     rbx, rcx                                                       ; +0xc, 0x18005998c\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xf, 0x18005998f\nmov     rcx, rax                                                       ; +0x14, 0x180059994\nmov     r8, [rax]                                                      ; +0x17, 0x180059997\ncall    qword ptr [r8+90h]                                             ; +0x1a, 0x18005999a\nxor     ecx, ecx                                                       ; +0x21, 0x1800599a1\nlea     r8, [rbx+140h]                                                 ; +0x23, 0x1800599a3\ntest    rbx, rbx                                                       ; +0x2a, 0x1800599aa\nmov     edx, edi; int                                                  ; +0x2d, 0x1800599ad\ncmovz   r8, rcx; struct cocos2d::CCTouchDelegate *                     ; +0x2f, 0x1800599af\nmov     rcx, rax; this                                                 ; +0x33, 0x1800599b3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x36, 0x1800599b6\nadd     rsp, 20h                                                       ; +0x3b, 0x1800599bb\npop     rdi                                                            ; +0x3f, 0x1800599bf\njmp     ?setPriority@CCTouchDispatcher@cocos2d@@QEAAXHPEAVCCTouchDelegate@2@@Z; cocos2d::CCTouchDispatcher::setPriority(int,cocos2d::CCTouchDelegate *) ; +0x40, 0x1800599c0", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b2b8c"], "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"}