//
// cocos2d::CCNode::transform from 0xaccd5c to 0xacce40 (228 bytes)
//
// 9 xrefs:
// > ShaderLayer::visit @ 0x9f7aa0
// > cocos2d::extension::CCScrollView::visit @ 0xaa63b4
// > cocos2d::CCNode::visit @ 0xacce84
// > cocos2d::CCNode::transformAncestors @ 0xaccfc8
// > cocos2d::CCClippingNode::visit @ 0xaf703c
// > cocos2d::CCRenderTexture::visit @ 0xaf9484
// > cocos2d::CCParticleBatchNode::visit @ 0xb01f84
// > cocos2d::CCSpriteBatchNode::visit @ 0xb17180
// > ??> @ 0x6fe88
//
// 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)
{
cocos2d *p_m_sTransform; // x22
float *v3; // x2
cocos2d::CCCamera *m_pCamera; // x0
cocos2d::CCGridBase *m_pGrid; // x1
_QWORD v6[3]; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCAffineTransform v7[2]; // [xsp+48h] [xbp+48h] BYREF
float m_fVertexZ; // [xsp+80h] [xbp+80h]
p_m_sTransform = (cocos2d *)&a1->m_sTransform;
((void (__fastcall *)(_QWORD *__return_ptr))a1->nodeToParentTransform)(v6);
cocos2d::CGAffineToGL(p_m_sTransform, v7, v3);
m_fVertexZ = a1->m_fVertexZ;
kmGLMultMatrix(v7);
m_pCamera = a1->m_pCamera;
if ( 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 )
{
cocos2d::CCCamera::locate(m_pCamera);
}
else
{
((void (*)(void))kmGLTranslatef)();
cocos2d::CCCamera::locate(a1->m_pCamera);
kmGLTranslatef(-a1->m_obAnchorPointInPoints.x, -a1->m_obAnchorPointInPoints.y, 0.0);
}
}
}
}