//
// cocos2d::extension::CCControl::isTouchInside from 0x180004a00 to 0x180004a6b (107 bytes)
//
// 10 xrefs:
// > ??> @ 0x180023b40
// > ??> @ 0x180024140
// > ??> @ 0x1800246b0
// > ??> @ 0x180024db8
// > ??> @ 0x180025950
// > ??> @ 0x1800264d0
// > ??> @ 0x180026af8
// > ??> @ 0x180027f88
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004948c
//
// 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 __fastcall cocos2d::extension::CCControl::isTouchInside(
cocos2d::extension::CCControl *this,
struct cocos2d::CCTouch *a2)
{
__int64 v3; // rax
__int64 v4; // rax
_BYTE v6[24]; // [rsp+20h] [rbp-18h] BYREF
char v7; // [rsp+40h] [rbp+8h] BYREF
char v8; // [rsp+50h] [rbp+18h] BYREF
cocos2d::CCTouch::getLocation(a2);
v3 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)this + 488LL))(this);
v4 = cocos2d::CCNode::convertToNodeSpace(v3, &v8, &v7);
cocos2d::CCPoint::operator=(&v7, v4);
cocos2d::CCNode::boundingBox(this, v6);
return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v6, (const struct cocos2d::CCPoint *)&v7);
}