{"type": "func", "start": 6442824624, "end": 6442824743, "name": "cocos2d::CCMenu::giveMenuTouchPriority", "pseudocode": "// \n// cocos2d::CCMenu::giveMenuTouchPriority from 0x18005b3b0 to 0x18005b427 (119 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMenu::giveMenuTouchPriority @ 0x18005b45a\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcd84\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:21:49 +0000\n// \n\nvoid __fastcall cocos2d::CCMenu::giveMenuTouchPriority(cocos2d::CCMenu *this, unsigned int a2)\n{\n  __int64 v4; // rcx\n  __int64 v5; // rdx\n\n  if ( *((_DWORD *)this + 109) == 1 )\n  {\n    v4 = *((_QWORD *)this + 55);\n    if ( v4 )\n    {\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 904LL))(v4);\n      *((_QWORD *)this + 55) = 0;\n    }\n    *((_DWORD *)this + 109) = 0;\n  }\n  (*(void (__fastcall **)(cocos2d::CCMenu *, _QWORD))(*(_QWORD *)this + 920LL))(this, 0);\n  (*(void (__fastcall **)(cocos2d::CCMenu *, _QWORD))(*(_QWORD *)this + 944LL))(this, a2);\n  LOBYTE(v5) = 1;\n  (*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 920LL))(this, v5);\n}", "assembly": "; \n; cocos2d::CCMenu::giveMenuTouchPriority from 0x18005b3b0 to 0x18005b427 (119 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMenu::giveMenuTouchPriority @ 0x18005b45a\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcd84\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:21:49 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005b3b0\npush    rdi                                                            ; +0x5, 0x18005b3b5\nsub     rsp, 20h                                                       ; +0x6, 0x18005b3b6\ncmp     dword ptr [rcx+1B4h], 1                                        ; +0xa, 0x18005b3ba\nmov     edi, edx                                                       ; +0x11, 0x18005b3c1\nmov     rbx, rcx                                                       ; +0x13, 0x18005b3c3\njnz     short loc_18005B3F2                                            ; +0x16, 0x18005b3c6\nmov     rcx, [rcx+1B8h]                                                ; +0x18, 0x18005b3c8\ntest    rcx, rcx                                                       ; +0x1f, 0x18005b3cf\njz      short loc_18005B3E8                                            ; +0x22, 0x18005b3d2\nmov     rax, [rcx]                                                     ; +0x24, 0x18005b3d4\ncall    qword ptr [rax+388h]                                           ; +0x27, 0x18005b3d7\nmov     qword ptr [rbx+1B8h], 0                                        ; +0x2d, 0x18005b3dd\nmov     dword ptr [rbx+1B4h], 0                                        ; +0x38, 0x18005b3e8\nmov     rax, [rbx]                                                     ; +0x42, 0x18005b3f2\nxor     edx, edx                                                       ; +0x45, 0x18005b3f5\nmov     rcx, rbx                                                       ; +0x47, 0x18005b3f7\ncall    qword ptr [rax+398h]                                           ; +0x4a, 0x18005b3fa\nmov     rax, [rbx]                                                     ; +0x50, 0x18005b400\nmov     edx, edi                                                       ; +0x53, 0x18005b403\nmov     rcx, rbx                                                       ; +0x55, 0x18005b405\ncall    qword ptr [rax+3B0h]                                           ; +0x58, 0x18005b408\nmov     rax, [rbx]                                                     ; +0x5e, 0x18005b40e\nmov     dl, 1                                                          ; +0x61, 0x18005b411\nmov     rcx, rbx                                                       ; +0x63, 0x18005b413\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x18005b416\nadd     rsp, 20h                                                       ; +0x6b, 0x18005b41b\npop     rdi                                                            ; +0x6f, 0x18005b41f\njmp     qword ptr [rax+398h]                                           ; +0x70, 0x18005b420", "xrefs": ["cocos2d::CCMenu::giveMenuTouchPriority @ 0x18005b45a", "<???> @ 0x18014cf68", "<???> @ 0x1801bcd84"], "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"}