//
// cocos2d::CCNode::transform from 0x5be04c to 0x5be0ec (160 bytes)
//
// 8 xrefs:
// > ShaderLayer::visit @ 0x54f12e
// > cocos2d::extension::CCScrollView::visit @ 0x5a8d90
// > cocos2d::CCNode::visit @ 0x5be110
// > cocos2d::CCNode::transformAncestors @ 0x5be1bc
// > cocos2d::CCClippingNode::visit @ 0x5d65a8
// > cocos2d::CCRenderTexture::visit @ 0x5d7fd2
// > cocos2d::CCParticleBatchNode::visit @ 0x5dd152
// > cocos2d::CCSpriteBatchNode::visit @ 0x5e7ade
//
// 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
//
void cocos2d::CCNode::transform(cocos2d::CCNode *a1)
{
float *v2; // r2
cocos2d::CCGridBase *m_pGrid; // r3
int v4; // r6
_BYTE v5[24]; // [sp+4h] [bp-5Ch] BYREF
cocos2d::CCAffineTransform v6[2]; // [sp+1Ch] [bp-44h] BYREF
float m_fVertexZ; // [sp+54h] [bp-Ch]
a1->nodeToParentTransform((cocos2d::CCAffineTransform *)v5, a1);
cocos2d::CGAffineToGL((cocos2d *)&a1->m_sTransform, v6, v2);
m_fVertexZ = a1->m_fVertexZ;
kmGLMultMatrix(v6);
if ( a1->m_pCamera )
{
m_pGrid = a1->m_pGrid;
if ( !m_pGrid || !m_pGrid->m_bActive )
{
if ( a1->m_obAnchorPointInPoints.x == 0.0 && a1->m_obAnchorPointInPoints.y == 0.0 )
{
v4 = 0;
}
else
{
v4 = 1;
kmGLTranslatef(LODWORD(a1->m_obAnchorPointInPoints.x), LODWORD(a1->m_obAnchorPointInPoints.y), 0);
}
cocos2d::CCCamera::locate(a1->m_pCamera);
if ( v4 )
kmGLTranslatef(
LODWORD(a1->m_obAnchorPointInPoints.x) ^ 0x80000000,
LODWORD(a1->m_obAnchorPointInPoints.y) ^ 0x80000000,
0);
}
}
}