//
// cocos2d::CCNode::parentToNodeTransform from 0x7c3dfc to 0x7c3e66 (106 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:23 +0000
//
cocos2d::CCNode *__fastcall cocos2d::CCNode::parentToNodeTransform(cocos2d::CCNode *this, int *a2)
{
int *v4; // r4
int v5; // r1
int v6; // r2
int v7; // r3
int v8; // r1
int v9; // r0
int v10; // r1
int v11; // r2
int v12; // r3
_DWORD *v13; // r4
int v14; // r1
_DWORD v16[7]; // [sp+0h] [bp-3Ch] BYREF
_BYTE v17[24]; // [sp+1Ch] [bp-20h] BYREF
v4 = a2 + 40;
if ( *((_BYTE *)a2 + 236) )
{
(*(void (__fastcall **)(_BYTE *))(*a2 + 400))(v17);
cocos2d::CCAffineTransformInvert(v16, v17);
v5 = v16[1];
v6 = v16[2];
v7 = v16[3];
*v4 = v16[0];
v4[1] = v5;
v4[2] = v6;
v4[3] = v7;
v8 = v16[5];
v4[4] = v16[4];
v4[5] = v8;
*((_BYTE *)a2 + 236) = 0;
}
v9 = *v4;
v10 = v4[1];
v11 = v4[2];
v12 = v4[3];
v13 = v4 + 4;
*(_DWORD *)this = v9;
*((_DWORD *)this + 1) = v10;
*((_DWORD *)this + 2) = v11;
*((_DWORD *)this + 3) = v12;
v14 = v13[1];
*((_DWORD *)this + 4) = *v13;
*((_DWORD *)this + 5) = v14;
return this;
}