//
// cocos2d::extension::CCControlPotentiometer::isTouchInside from 0xaa3988 to 0xaa3ab8 (304 bytes)
//
// 2 xrefs:
// > ??> @ 0x8dc78
// > ??> @ 0x11f8888
//
// 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::CCControlPotentiometer::isTouchInside(
cocos2d::extension::CCControlPotentiometer *a1,
cocos2d::CCTouch *a2)
{
const cocos2d::CCPoint *v3; // x0
float v4; // s10
float v5; // s9
float height; // s1
const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x1
float v8; // s1
cocos2d::CCPoint v10; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v11; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCPoint v12; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCPoint v13; // 0:s0.4,4:s1.4
cocos2d::CCPoint v14; // 0:s2.4,4:s3.4
((void (__fastcall *)(cocos2d::CCPoint *__return_ptr))a1->getTouchLocation)(&v10);
v3 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 192LL))(*(_QWORD *)&a1[1].m_uID);
cocos2d::CCPoint::CCPoint(&v11, v3);
cocos2d::CCPoint::CCPoint(&v12, &v10);
v4 = cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint(a1, v13, v14);
v5 = a1->getContentSize(a1)->width * 0.5;
height = a1->getContentSize(a1)->height;
getContentSize = a1->getContentSize;
if ( v5 > (float)(height * 0.5) )
v8 = getContentSize(a1)->height * 0.5;
else
v8 = getContentSize(a1)->width * 0.5;
return v8 > v4;
}