{"type": "func", "start": 6442825232, "end": 6442825286, "name": "cocos2d::CCMenu::itemForTouch", "pseudocode": "// \n// cocos2d::CCMenu::itemForTouch from 0x18005b610 to 0x18005b646 (54 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcdf0\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\nstruct cocos2d::CCMenuItem *__fastcall cocos2d::CCMenu::itemForTouch(\n        cocos2d::CCMenu *this,\n        struct cocos2d::CCTouch *a2)\n{\n  struct cocos2d::CCMenuItem *result; // rax\n\n  result = cocos2d::CCMenu::itemForTouch(this, a2, 0);\n  if ( !result )\n    return cocos2d::CCMenu::itemForTouch(this, a2, 1);\n  return result;\n}", "assembly": "; \n; cocos2d::CCMenu::itemForTouch from 0x18005b610 to 0x18005b646 (54 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcdf0\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, 0x18005b610\npush    rdi                                                            ; +0x5, 0x18005b615\nsub     rsp, 20h                                                       ; +0x6, 0x18005b616\nxor     r8d, r8d; bool                                                 ; +0xa, 0x18005b61a\nmov     rbx, rdx                                                       ; +0xd, 0x18005b61d\nmov     rdi, rcx                                                       ; +0x10, 0x18005b620\ncall    ?itemForTouch@CCMenu@cocos2d@@IEAAPEAVCCMenuItem@2@PEAVCCTouch@2@_N@Z; cocos2d::CCMenu::itemForTouch(cocos2d::CCTouch *,bool) ; +0x13, 0x18005b623\ntest    rax, rax                                                       ; +0x18, 0x18005b628\njnz     short loc_18005B63B                                            ; +0x1b, 0x18005b62b\nmov     r8b, 1; bool                                                   ; +0x1d, 0x18005b62d\nmov     rdx, rbx; struct cocos2d::CCTouch *                            ; +0x20, 0x18005b630\nmov     rcx, rdi; this                                                 ; +0x23, 0x18005b633\ncall    ?itemForTouch@CCMenu@cocos2d@@IEAAPEAVCCMenuItem@2@PEAVCCTouch@2@_N@Z; cocos2d::CCMenu::itemForTouch(cocos2d::CCTouch *,bool) ; +0x26, 0x18005b636\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2b, 0x18005b63b\nadd     rsp, 20h                                                       ; +0x30, 0x18005b640\npop     rdi                                                            ; +0x34, 0x18005b644\nretn                                                                   ; +0x35, 0x18005b645", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bcdf0"], "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"}