{"type": "func", "start": 6442782576, "end": 6442782645, "name": "cocos2d::CCLayer::setTouchPriority", "pseudocode": "// \n// cocos2d::CCLayer::setTouchPriority from 0x180050f70 to 0x180050fb5 (69 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800ed290\n// > <???> @ 0x1800ed750\n// > <???> @ 0x1800edc88\n// > <???> @ 0x1800ee1f0\n// > <???> @ 0x1800ee7c8\n// > <???> @ 0x1800f7098\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2178\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::CCLayer::setTouchPriority(cocos2d::CCLayer *this, int a2)\n{\n  bool v3; // zf\n  __int64 v4; // rdx\n\n  if ( this->m_nTouchPriority != a2 )\n  {\n    v3 = !this->m_bTouchEnabled;\n    this->m_nTouchPriority = a2;\n    if ( !v3 )\n    {\n      ((void (__fastcall *)(cocos2d::CCLayer *, _QWORD))this->setTouchEnabled)(this, 0);\n      LOBYTE(v4) = 1;\n      ((void (__fastcall *)(cocos2d::CCLayer *, __int64))this->setTouchEnabled)(this, v4);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCLayer::setTouchPriority from 0x180050f70 to 0x180050fb5 (69 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800ed290\n; > <???> @ 0x1800ed750\n; > <???> @ 0x1800edc88\n; > <???> @ 0x1800ee1f0\n; > <???> @ 0x1800ee7c8\n; > <???> @ 0x1800f7098\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2178\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, 0x180050f70\nsub     rsp, 20h                                                       ; +0x2, 0x180050f72\nmov     rbx, rcx                                                       ; +0x6, 0x180050f76\ncmp     [rcx+188h], edx                                                ; +0x9, 0x180050f79\njz      short loc_180050FAF                                            ; +0xf, 0x180050f7f\ncmp     byte ptr [rcx+168h], 0                                         ; +0x11, 0x180050f81\nmov     [rcx+188h], edx                                                ; +0x18, 0x180050f88\njz      short loc_180050FAF                                            ; +0x1e, 0x180050f8e\nmov     rax, [rcx]                                                     ; +0x20, 0x180050f90\nxor     edx, edx                                                       ; +0x23, 0x180050f93\ncall    qword ptr [rax+388h]                                           ; +0x25, 0x180050f95\nmov     rax, [rbx]                                                     ; +0x2b, 0x180050f9b\nmov     dl, 1                                                          ; +0x2e, 0x180050f9e\nmov     rcx, rbx                                                       ; +0x30, 0x180050fa0\nadd     rsp, 20h                                                       ; +0x33, 0x180050fa3\npop     rbx                                                            ; +0x37, 0x180050fa7\njmp     qword ptr [rax+388h]                                           ; +0x38, 0x180050fa8\nadd     rsp, 20h                                                       ; +0x3f, 0x180050faf\npop     rbx                                                            ; +0x43, 0x180050fb3\nretn                                                                   ; +0x44, 0x180050fb4", "xrefs": ["<???> @ 0x1800ed290", "<???> @ 0x1800ed750", "<???> @ 0x1800edc88", "<???> @ 0x1800ee1f0", "<???> @ 0x1800ee7c8", "<???> @ 0x1800f7098", "<???> @ 0x1801438a8", "<???> @ 0x1801b2178"], "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"}