{"type": "func", "start": 6442782496, "end": 6442782565, "name": "cocos2d::CCLayer::setTouchMode", "pseudocode": "// \n// cocos2d::CCLayer::setTouchMode from 0x180050f20 to 0x180050f65 (69 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800ed280\n// > <???> @ 0x1800ed740\n// > <???> @ 0x1800edc78\n// > <???> @ 0x1800ee1e0\n// > <???> @ 0x1800ee7b8\n// > <???> @ 0x1800f7088\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2160\n// > <???> @ 0x1801b216c\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\n__int64 __fastcall cocos2d::CCLayer::setTouchMode(cocos2d::CCLayer *this, enum cocos2d::ccTouchesMode a2)\n{\n  bool v3; // zf\n  __int64 v4; // rdx\n  __int64 result; // rax\n\n  if ( this->m_eTouchMode != a2 )\n  {\n    v3 = !this->m_bTouchEnabled;\n    this->m_eTouchMode = a2;\n    if ( !v3 )\n    {\n      ((void (__fastcall *)(cocos2d::CCLayer *, _QWORD))this->setTouchEnabled)(this, 0);\n      LOBYTE(v4) = 1;\n      return ((__int64 (__fastcall *)(cocos2d::CCLayer *, __int64))this->setTouchEnabled)(this, v4);\n    }\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCLayer::setTouchMode from 0x180050f20 to 0x180050f65 (69 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800ed280\n; > <???> @ 0x1800ed740\n; > <???> @ 0x1800edc78\n; > <???> @ 0x1800ee1e0\n; > <???> @ 0x1800ee7b8\n; > <???> @ 0x1800f7088\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2160\n; > <???> @ 0x1801b216c\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\npush    rbx                                                            ; +0x0, 0x180050f20\nsub     rsp, 20h                                                       ; +0x2, 0x180050f22\nmov     rbx, rcx                                                       ; +0x6, 0x180050f26\ncmp     [rcx+18Ch], edx                                                ; +0x9, 0x180050f29\njz      short loc_180050F5F                                            ; +0xf, 0x180050f2f\ncmp     byte ptr [rcx+168h], 0                                         ; +0x11, 0x180050f31\nmov     [rcx+18Ch], edx                                                ; +0x18, 0x180050f38\njz      short loc_180050F5F                                            ; +0x1e, 0x180050f3e\nmov     rax, [rcx]                                                     ; +0x20, 0x180050f40\nxor     edx, edx                                                       ; +0x23, 0x180050f43\ncall    qword ptr [rax+388h]                                           ; +0x25, 0x180050f45\nmov     rax, [rbx]                                                     ; +0x2b, 0x180050f4b\nmov     dl, 1                                                          ; +0x2e, 0x180050f4e\nmov     rcx, rbx                                                       ; +0x30, 0x180050f50\nadd     rsp, 20h                                                       ; +0x33, 0x180050f53\npop     rbx                                                            ; +0x37, 0x180050f57\njmp     qword ptr [rax+388h]                                           ; +0x38, 0x180050f58\nadd     rsp, 20h                                                       ; +0x3f, 0x180050f5f\npop     rbx                                                            ; +0x43, 0x180050f63\nretn                                                                   ; +0x44, 0x180050f64", "xrefs": ["<???> @ 0x1800ed280", "<???> @ 0x1800ed740", "<???> @ 0x1800edc78", "<???> @ 0x1800ee1e0", "<???> @ 0x1800ee7b8", "<???> @ 0x1800f7088", "<???> @ 0x1801438a8", "<???> @ 0x1801b2160", "<???> @ 0x1801b216c"], "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"}