//
// cocos2d::extension::CCControl::isTouchInside from 0x5a09e0 to 0x5a0a36 (86 bytes)
//
// 0 xrefs:
//
// 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
//
bool cocos2d::extension::CCControl::isTouchInside(cocos2d::extension::CCControl *a1, cocos2d::CCTouch *a2)
{
cocos2d::CCNode *v3; // r0
int v4; // r2
bool v5; // r3
cocos2d::CCPoint v7; // [sp+4h] [bp-20h] BYREF
cocos2d::CCRect v8; // [sp+Ch] [bp-18h] BYREF
cocos2d::CCTouch::getLocation(&v7, a2);
v3 = a1->getParent(a1);
cocos2d::CCNode::convertToNodeSpace(&v8.origin, v3, &v7);
cocos2d::CCPoint::operator=((PlayerObject *)&v7, COERCE_FLOAT(&v8), v4, v5);
cocos2d::CCNode::boundingBox(&v8, a1);
return cocos2d::CCRect::containsPoint(&v8, &v7);
}