//
// cocos2d::extension::CCControlSlider::locationFromTouch from 0x7a9a74 to 0x7a9af6 (130 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlSlider::ccTouchBegan @ 0x7a9c18
// > cocos2d::extension::CCControlSlider::ccTouchMoved @ 0x7a9caa
//
// 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:01 +0000
//
cocos2d::extension::CCControlSlider *__fastcall cocos2d::extension::CCControlSlider::locationFromTouch(
cocos2d::extension::CCControlSlider *this,
cocos2d::CCTouch *a2)
{
float v4; // s16
int v5; // r3
_BYTE v7[8]; // [sp+4h] [bp+0h] BYREF
cocos2d::CCTouch::getLocation(this);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v7, a2);
cocos2d::CCPoint::operator=(this, v7);
if ( *(float *)this < 0.0 )
{
v5 = 0;
LABEL_5:
*(_DWORD *)this = v5;
return this;
}
v4 = *(float *)this;
if ( v4 > *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)a2 + 96) + 164))(*((_DWORD *)a2 + 96)) )
{
v5 = *(_DWORD *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)a2 + 96) + 164))(*((_DWORD *)a2 + 96));
goto LABEL_5;
}
return this;
}