//
// cocos2d::CCNode::transform from 0x1002d8ff8 to 0x1002d90a0 (168 bytes)
//
// 5 xrefs:
// > cocos2d::CCSpriteBatchNode::visit @ 0x10026f898
// > cocos2d::CCNode::visit @ 0x1002d8f00
// > cocos2d::CCNode::transformAncestors @ 0x1002d90c8
// > ShaderLayer::visit @ 0x1003110ac
// > cocos2d::CCRenderTexture::visit @ 0x100467834
//
// 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 11:02:43 +0000
//
__int64 __fastcall cocos2d::CCNode::transform(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x8
_QWORD v4[7]; // [xsp+0h] [xbp-50h] BYREF
int v5; // [xsp+38h] [xbp-18h]
(*(void (__fastcall **)(_QWORD *__return_ptr))(*(_QWORD *)a1 + 800LL))(v4);
sub_1001ABAA0(a1 + 140, (__int64)v4);
v5 = *(_DWORD *)(a1 + 72);
kmGLMultMatrix((__int64)v4);
result = *(_QWORD *)(a1 + 192);
if ( result )
{
v3 = *(_QWORD *)(a1 + 200);
if ( !v3 || (*(_BYTE *)(v3 + 56) & 1) == 0 )
{
if ( *(float *)(a1 + 92) == 0.0 && *(float *)(a1 + 96) == 0.0 )
{
return cocos2d::CCCamera::locate(result);
}
else
{
kmGLTranslatef();
cocos2d::CCCamera::locate(*(_QWORD *)(a1 + 192));
return kmGLTranslatef();
}
}
}
return result;
}