//
// cocos2d::CCNode::convertTouchToNodeSpace from 0x180003030 to 0x180003099 (105 bytes)
//
// 3 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad258
// > ??> @ 0x1801ad264
//
// 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
//
struct cocos2d::CCTouch *__fastcall cocos2d::CCNode::convertTouchToNodeSpace(
cocos2d::CCNode *this,
struct cocos2d::CCTouch *a2,
cocos2d::CCTouch *a3)
{
const struct cocos2d::CCAffineTransform *v5; // rax
struct cocos2d::CCPoint v7; // [rsp+20h] [rbp-38h] BYREF
_BYTE v8[24]; // [rsp+28h] [rbp-30h] BYREF
cocos2d::CCTouch::getLocation(a3);
v5 = (const struct cocos2d::CCAffineTransform *)((__int64 (__fastcall *)(cocos2d::CCNode *, _BYTE *))this->worldToNodeTransform)(
this,
v8);
cocos2d::__CCPointApplyAffineTransform((cocos2d *)a2, &v7, v5);
return a2;
}