//
// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x7acf50 to 0x7acfcc (124 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlPotentiometer::ccTouchBegan @ 0x7acfd4
//
// 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
//
int __fastcall cocos2d::extension::CCControlPotentiometer::ccTouchBegan(_DWORD **a1, int a2)
{
int v4; // r7
_BYTE v6[8]; // [sp+4h] [bp-10h] BYREF
if ( !((int (__fastcall *)(_DWORD **))(*a1)[169])(a1) )
return 0;
if ( !((int (__fastcall *)(_DWORD **))(*a1)[159])(a1) )
return 0;
v4 = ((int (__fastcall *)(_DWORD **))(*a1)[44])(a1);
if ( !v4 )
return 0;
((void (__fastcall *)(_BYTE *, _DWORD **, int))(*a1)[168])(v6, a1, a2);
cocos2d::CCPoint::operator=(a1 + 91, v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, (const cocos2d::CCPoint *)(a1 + 91));
cocos2d::extension::CCControlPotentiometer::potentiometerBegan(a1);
return v4;
}