//
// cocos2d::extension::CCControl::isTouchInside from 0x180004480 to 0x1800044eb (107 bytes)
//
// 10 xrefs:
// > ??> @ 0x180026068
// > ??> @ 0x180026688
// > ??> @ 0x180026c08
// > ??> @ 0x180027340
// > ??> @ 0x180027f18
// > ??> @ 0x180028ad8
// > ??> @ 0x180029120
// > ??> @ 0x18002a600
// > ??> @ 0x180032408
// > ??> @ 0x18004b3d8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:15:35 +0000
//
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 + 504LL))(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);
}