//
// cocos2d::extension::CCControlSlider::locationFromTouch from 0x18000a510 to 0x18000a59d (141 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004ba74
//
// This function is hookable on this platform (idp: pc, 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 12:15:37 +0000
//
float *__fastcall cocos2d::extension::CCControlSlider::locationFromTouch(__int64 a1, float *a2, __int64 a3)
{
__int64 v5; // rax
char v7; // [rsp+38h] [rbp+10h] BYREF
cocos2d::CCTouch::getLocation(a3);
v5 = cocos2d::CCNode::convertToNodeSpace(a1, &v7, a2);
cocos2d::CCPoint::operator=(a2, v5);
if ( *a2 >= 0.0 )
{
if ( *a2 > *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 320LL))(*(_QWORD *)(a1 + 512)) )
*a2 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 320LL))(*(_QWORD *)(a1 + 512));
return a2;
}
else
{
*a2 = 0.0;
return a2;
}
}