//
// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0xaa3ba0 to 0xaa3c8c (236 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlPotentiometer::ccTouchBegan @ 0xaa3c90
// > ??> @ 0xc26d0
// > ??> @ 0x11f86c0
//
// 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)
{
bool v5; // w21
float v7; // s0
float v8; // s1
cocos2d::CCPoint v9; // [xsp+40h] [xbp+40h] BYREF
cocos2d::CCPoint v10; // 0:s0.4,4:s1.4
if ( !((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControlPotentiometer *))a1->isTouchInside)(a1) )
return 0;
if ( !a1->isEnabled(a1) )
return 0;
v5 = a1->isVisible(a1);
if ( !v5 )
return 0;
((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, cocos2d::extension::CCControlPotentiometer *, cocos2d::CCTouch *))a1->getTouchLocation)(
&v9,
a1,
a2);
cocos2d::CCPoint::operator=(&a1[1].m_nTag, v7, v8);
cocos2d::CCPoint::CCPoint(&v9, (const cocos2d::CCPoint *)&a1[1].m_nTag);
cocos2d::extension::CCControlPotentiometer::potentiometerBegan(a1, v10);
return v5;
}