//
// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x5a7258 to 0x5a72d4 (124 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlPotentiometer::ccTouchBegan @ 0x5a72dc
//
// 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::ccTouchBegan(
cocos2d::extension::CCControlPotentiometer *a1,
cocos2d::CCTouch *a2,
cocos2d::CCEvent *a3)
{
int v5; // r7
int v6; // r2
bool v7; // r3
cocos2d::CCPoint v8; // r1
cocos2d::CCPoint v10; // [sp+4h] [bp-10h] BYREF
if ( ((int (__fastcall *)(cocos2d::extension::CCControlPotentiometer *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->isTouchInside)(
a1,
a2,
a3)
&& ((int (__fastcall *)(cocos2d::extension::CCControlPotentiometer *))a1->isEnabled)(a1)
&& (v5 = ((int (__fastcall *)(cocos2d::extension::CCControlPotentiometer *))a1->isVisible)(a1)) != 0 )
{
a1->getTouchLocation(&v10, a1, a2);
cocos2d::CCPoint::operator=((PlayerObject *)&a1[1].m_nLuaID, COERCE_FLOAT(&v10), v6, v7);
cocos2d::CCPoint::CCPoint(&v10, (const cocos2d::CCPoint *)&a1[1].m_nLuaID);
LODWORD(v8.x) = &v10;
cocos2d::extension::CCControlPotentiometer::potentiometerBegan(a1, v8);
}
else
{
LOBYTE(v5) = 0;
}
return v5;
}