//
// cocos2d::CCNode::nodeToWorldTransform from 0x5bd040 to 0x5bd0b0 (112 bytes)
//
// 0 xrefs:
//
// 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::CCAffineTransform *cocos2d::CCNode::nodeToWorldTransform(
cocos2d::CCAffineTransform *__return_ptr retstr,
cocos2d::CCNode *a2)
{
cocos2d::CCNode *i; // r7
float b; // r1
float c; // r2
float d; // r3
float ty; // r1
cocos2d::CCNode *(__fastcall *getParent)(cocos2d::CCNode *__hidden); // r3
cocos2d::CCAffineTransform v11; // [sp+0h] [bp-38h] BYREF
cocos2d::CCAffineTransform v12; // [sp+1Ch] [bp-1Ch] BYREF
((void (*)(void))a2->nodeToParentTransform)();
for ( i = a2->m_pParent; i; i = getParent(i) )
{
i->nodeToParentTransform(&v12, i);
cocos2d::CCAffineTransformConcat(&v11, retstr, &v12);
b = v11.b;
c = v11.c;
d = v11.d;
retstr->a = v11.a;
retstr->b = b;
retstr->c = c;
retstr->d = d;
ty = v11.ty;
getParent = i->getParent;
retstr->tx = v11.tx;
retstr->ty = ty;
}
return retstr;
}