//
// cocos2d::extension::CCControlPotentiometer::isTouchInside from 0x5a70bc to 0x5a7180 (196 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::CCControlPotentiometer::isTouchInside(
cocos2d::extension::CCControlPotentiometer *a1,
cocos2d::CCTouch *a2)
{
const cocos2d::CCPoint *v3; // r0
cocos2d::CCPoint v4; // r1
float v5; // s18
float width; // s17
const cocos2d::CCSize *v7; // r0
const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // r3
float height; // s15
float v11; // r3
float v12; // [sp+0h] [bp-14h]
cocos2d::CCPoint v13; // [sp+4h] [bp-10h] BYREF
cocos2d::CCPoint v14; // [sp+Ch] [bp-8h] BYREF
cocos2d::CCPoint v15; // [sp+14h] [bp+0h] BYREF
cocos2d::CCPoint v16; // 0:kr00_8.8
a1->getTouchLocation(&v13, a1, a2);
v3 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(unsigned int))(*(_DWORD *)a1[1].m_uID + 96))(a1[1].m_uID);
cocos2d::CCPoint::CCPoint(&v14, v3);
cocos2d::CCPoint::CCPoint(&v15, &v13);
LODWORD(v4.x) = &v14;
LODWORD(v4.y) = &v15;
v16.x = v11;
v16.y = v12;
v5 = cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint(a1, v4, v16);
width = a1->getContentSize(a1)->width;
v7 = a1->getContentSize(a1);
getContentSize = a1->getContentSize;
if ( (float)(width * 0.5) <= (float)(v7->height * 0.5) )
height = getContentSize(a1)->width;
else
height = getContentSize(a1)->height;
return v5 < (float)(height * 0.5);
}