//
// cocos2d::extension::CCControl::getTouchLocation from 0x1001a5f30 to 0x1001a5f7c (76 bytes)
//
// 4 xrefs:
// > ??> @ 0x1007ae2e8
// > ??> @ 0x1007af5f0
// > ??> @ 0x1007b0410
// > ??> @ 0x1007b6398
//
// 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 __fastcall cocos2d::extension::CCControl::getTouchLocation(
cocos2d::extension::CCControl *a1,
cocos2d::CCTouch *a2)
{
cocos2d::CCPoint *v2; // x8
cocos2d::CCPoint *v4; // x20
double v5; // d0
double v7; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v4 = v2;
cocos2d::CCTouch::getLocation(a2);
cocos2d::CCNode::convertToNodeSpace(a1, v4);
v5 = sub_1000229D0(v4, &v7);
result.x = *(float *)&v5;
return result;
}