//
// cocos2d::CCNode::convertToWindowSpace from 0x180002ef0 to 0x180002f5e (110 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad240
//
// 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
//
const struct cocos2d::CCPoint *__fastcall cocos2d::CCNode::convertToWindowSpace(
cocos2d::CCNode *this,
const struct cocos2d::CCPoint *a2,
const struct cocos2d::CCPoint *a3)
{
const struct cocos2d::CCAffineTransform *v5; // rax
cocos2d::CCDirector *v6; // rax
_BYTE v8[8]; // [rsp+20h] [rbp-38h] BYREF
_BYTE v9[24]; // [rsp+28h] [rbp-30h] BYREF
v5 = (const struct cocos2d::CCAffineTransform *)((__int64 (__fastcall *)(cocos2d::CCNode *, _BYTE *))this->nodeToWorldTransform)(
this,
v9);
cocos2d::__CCPointApplyAffineTransform((cocos2d *)v8, a3, v5);
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToUI(v6, a2);
return a2;
}