//
// cocos2d::CCLayer::setTouchPriority from 0x180050f70 to 0x180050fb5 (69 bytes)
//
// 8 xrefs:
// > ??> @ 0x1800ed290
// > ??> @ 0x1800ed750
// > ??> @ 0x1800edc88
// > ??> @ 0x1800ee1f0
// > ??> @ 0x1800ee7c8
// > ??> @ 0x1800f7098
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2178
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCLayer::setTouchPriority(cocos2d::CCLayer *this, int a2)
{
bool v3; // zf
__int64 v4; // rdx
if ( this->m_nTouchPriority != a2 )
{
v3 = !this->m_bTouchEnabled;
this->m_nTouchPriority = a2;
if ( !v3 )
{
((void (__fastcall *)(cocos2d::CCLayer *, _QWORD))this->setTouchEnabled)(this, 0);
LOBYTE(v4) = 1;
((void (__fastcall *)(cocos2d::CCLayer *, __int64))this->setTouchEnabled)(this, v4);
}
}
}