//
// cocos2d::extension::CCControlPotentiometer::isTouchInside from 0x7acdcc to 0x7ace90 (196 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:03 +0000
//
bool __fastcall cocos2d::extension::CCControlPotentiometer::isTouchInside(
cocos2d::extension::CCControlPotentiometer *this,
cocos2d::CCTouch *a2)
{
const cocos2d::CCPoint *v3; // r0
float v4; // s18
float v5; // s17
int v6; // r0
int (__fastcall *v7)(cocos2d::extension::CCControlPotentiometer *); // r3
float v8; // s15
_BYTE v10[8]; // [sp+4h] [bp-10h] BYREF
float v11[2]; // [sp+Ch] [bp-8h] BYREF
float v12[2]; // [sp+14h] [bp+0h] BYREF
(*(void (__fastcall **)(_BYTE *, cocos2d::extension::CCControlPotentiometer *, cocos2d::CCTouch *))(*(_DWORD *)this + 672))(
v10,
this,
a2);
v3 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 90) + 96))(*((_DWORD *)this + 90));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v10);
v4 = cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint((int)this, v11, v12);
v5 = *(float *)(*(int (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_DWORD *)this + 164))(this);
v6 = (*(int (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_DWORD *)this + 164))(this);
v7 = *(int (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_DWORD *)this + 164);
if ( (float)(v5 * 0.5) <= (float)(*(float *)(v6 + 4) * 0.5) )
v8 = *(float *)v7(this);
else
v8 = *(float *)(v7(this) + 4);
return v4 < (float)(v8 * 0.5);
}