//
// cocos2d::CCNode::transform from 0xd3eccc to 0xd3edb0 (228 bytes)
//
// 9 xrefs:
// > ShaderLayer::visit @ 0xb2e444
// > cocos2d::extension::CCScrollView::visit @ 0xd17df8
// > cocos2d::CCNode::visit @ 0xd3edf4
// > cocos2d::CCNode::transformAncestors @ 0xd3ef38
// > cocos2d::CCClippingNode::visit @ 0xd67fbc
// > cocos2d::CCRenderTexture::visit @ 0xd6a540
// > cocos2d::CCParticleBatchNode::visit @ 0xd7251c
// > cocos2d::CCSpriteBatchNode::visit @ 0xd8865c
// > ??> @ 0x96be0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:29 +0000
//
__int64 __fastcall cocos2d::CCNode::transform(cocos2d::CCNode *this)
{
char *v2; // x22
cocos2d::CCCamera *v3; // x0
__int64 v4; // x1
__int64 v6; // x0
_QWORD v7[3]; // [xsp+30h] [xbp+30h] BYREF
_BYTE v8[56]; // [xsp+48h] [xbp+48h] BYREF
int v9; // [xsp+80h] [xbp+80h]
v2 = (char *)this + 140;
(*(void (__fastcall **)(_QWORD *__return_ptr))(*(_QWORD *)this + 800LL))(v7);
cocos2d::CGAffineToGL(v2, v8);
v9 = *((_DWORD *)this + 18);
kmGLMultMatrix(v8);
v3 = *((cocos2d::CCCamera **)this + 24);
if ( v3 )
{
v4 = *((_QWORD *)this + 25);
if ( !v4 || !*(_BYTE *)(v4 + 56) )
{
if ( *((float *)this + 23) == 0.0 && *((float *)this + 24) == 0.0 )
{
cocos2d::CCCamera::locate(v3);
}
else
{
((void (*)(void))kmGLTranslatef)();
v6 = cocos2d::CCCamera::locate(*((cocos2d::CCCamera **)this + 24));
kmGLTranslatef(v6, -*((float *)this + 23), -*((float *)this + 24), 0.0);
}
}
}
return _stack_chk_guard;
}