//
// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0xd155f0 to 0xd156dc (236 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlPotentiometer::ccTouchBegan @ 0xd156e0
// > ??> @ 0xfd330
// > ??> @ 0x150df50
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControlPotentiometer::ccTouchBegan(_QWORD **a1, __int64 a2)
{
unsigned int v4; // w21
unsigned __int8 v6; // w0
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
if ( ((unsigned __int8 (__fastcall *)(_QWORD **))(*a1)[169])(a1)
&& ((unsigned __int8 (__fastcall *)(_QWORD **))(*a1)[159])(a1)
&& (v6 = ((__int64 (__fastcall *)(_QWORD **))(*a1)[44])(a1), (v4 = v6) != 0) )
{
((void (__fastcall *)(__int64 *__return_ptr, _QWORD **, __int64))(*a1)[168])(&v7, a1, a2);
cocos2d::CCPoint::operator=(a1 + 61, &v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, (const cocos2d::CCPoint *)(a1 + 61));
cocos2d::extension::CCControlPotentiometer::potentiometerBegan(a1);
}
else
{
return 0;
}
return v4;
}