{"type": "func", "start": 6442790224, "end": 6442790293, "name": "cocos2d::CCLayer::setTouchMode", "pseudocode": "// \n// cocos2d::CCLayer::setTouchMode from 0x180052d50 to 0x180052d95 (69 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800f33e0\n// > <???> @ 0x1800f38c0\n// > <???> @ 0x1800f3e18\n// > <???> @ 0x1800f43a0\n// > <???> @ 0x1800f4998\n// > <???> @ 0x1800fd4d0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc400\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:46 +0000\n// \n\n__int64 __fastcall cocos2d::CCLayer::setTouchMode(__int64 a1, int a2)\n{\n  bool v3; // zf\n  __int64 v4; // rdx\n  __int64 result; // rax\n\n  if ( *(_DWORD *)(a1 + 396) != a2 )\n  {\n    v3 = *(_BYTE *)(a1 + 360) == 0;\n    *(_DWORD *)(a1 + 396) = a2;\n    if ( !v3 )\n    {\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 920LL))(a1, 0);\n      LOBYTE(v4) = 1;\n      return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v4);\n    }\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCLayer::setTouchMode from 0x180052d50 to 0x180052d95 (69 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800f33e0\n; > <???> @ 0x1800f38c0\n; > <???> @ 0x1800f3e18\n; > <???> @ 0x1800f43a0\n; > <???> @ 0x1800f4998\n; > <???> @ 0x1800fd4d0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc400\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:46 +0000\n; \npush    rbx                                                            ; +0x0, 0x180052d50\nsub     rsp, 20h                                                       ; +0x2, 0x180052d52\nmov     rbx, rcx                                                       ; +0x6, 0x180052d56\ncmp     [rcx+18Ch], edx                                                ; +0x9, 0x180052d59\njz      short loc_180052D8F                                            ; +0xf, 0x180052d5f\ncmp     byte ptr [rcx+168h], 0                                         ; +0x11, 0x180052d61\nmov     [rcx+18Ch], edx                                                ; +0x18, 0x180052d68\njz      short loc_180052D8F                                            ; +0x1e, 0x180052d6e\nmov     rax, [rcx]                                                     ; +0x20, 0x180052d70\nxor     edx, edx                                                       ; +0x23, 0x180052d73\ncall    qword ptr [rax+398h]                                           ; +0x25, 0x180052d75\nmov     rax, [rbx]                                                     ; +0x2b, 0x180052d7b\nmov     dl, 1                                                          ; +0x2e, 0x180052d7e\nmov     rcx, rbx                                                       ; +0x30, 0x180052d80\nadd     rsp, 20h                                                       ; +0x33, 0x180052d83\npop     rbx                                                            ; +0x37, 0x180052d87\njmp     qword ptr [rax+398h]                                           ; +0x38, 0x180052d88\nadd     rsp, 20h                                                       ; +0x3f, 0x180052d8f\npop     rbx                                                            ; +0x43, 0x180052d93\nretn                                                                   ; +0x44, 0x180052d94", "xrefs": ["<???> @ 0x1800f33e0", "<???> @ 0x1800f38c0", "<???> @ 0x1800f3e18", "<???> @ 0x1800f43a0", "<???> @ 0x1800f4998", "<???> @ 0x1800fd4d0", "<???> @ 0x18014cf68", "<???> @ 0x1801bc400"], "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"}