//
// cocos2d::extension::CCControlPotentiometer::isTouchInside from 0xd153e8 to 0xd15518 (304 bytes)
//
// 2 xrefs:
// > ??> @ 0xbbb40
// > ??> @ 0x150e118
//
// This function is hookable on this platform (idp: arm, 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 13:07:05 +0000
//
bool __fastcall cocos2d::extension::CCControlPotentiometer::isTouchInside(
cocos2d::extension::CCControlPotentiometer *this,
cocos2d::CCTouch *a2)
{
const cocos2d::CCPoint *v3; // x0
float v4; // s10
float v5; // s9
float v6; // s1
__int64 (__fastcall *v7)(cocos2d::extension::CCControlPotentiometer *); // x1
float v8; // s1
__int64 v10; // [xsp+60h] [xbp+60h] BYREF
float v11; // [xsp+68h] [xbp+68h] BYREF
float v12; // [xsp+70h] [xbp+70h] BYREF
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)this + 1344LL))(&v10);
v3 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 60) + 192LL))(*((_QWORD *)this + 60));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const cocos2d::CCPoint *)&v10);
v4 = cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint((__int64)this, &v11, &v12);
v5 = *(float *)(*(__int64 (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_QWORD *)this + 328LL))(this)
* 0.5;
v6 = *(float *)((*(__int64 (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_QWORD *)this + 328LL))(this)
+ 4);
v7 = *(__int64 (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_QWORD *)this + 328LL);
if ( v5 > (float)(v6 * 0.5) )
v8 = *(float *)(v7(this) + 4) * 0.5;
else
v8 = *(float *)v7(this) * 0.5;
return v8 > v4;
}