//
// cocos2d::extension::CCControlSwitch::locationFromTouch from 0xa9fef8 to 0xa9ff70 (120 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCControlSwitch::ccTouchBegan @ 0xaa0018
// > cocos2d::extension::CCControlSwitch::ccTouchMoved @ 0xaa0094
// > cocos2d::extension::CCControlSwitch::ccTouchEnded @ 0xaa0128
// > cocos2d::extension::CCControlSwitch::ccTouchCancelled @ 0xaa0200
// > ??> @ 0x579d8
//
// 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
//
cocos2d::CCPoint cocos2d::extension::CCControlSwitch::locationFromTouch(
cocos2d::extension::CCControlSwitch *a1,
cocos2d::CCTouch *a2)
{
const cocos2d::CCPoint *v2; // x8
const cocos2d::CCPoint *v4; // x21
cocos2d::CCPoint v7; // 0:kr08_8.8
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v4 = v2;
cocos2d::CCTouch::getLocation(a2);
v7 = cocos2d::CCNode::convertToNodeSpace(a1, v4);
cocos2d::CCPoint::operator=(v4, v7.x, v7.y);
return result;
}