//
// cocos2d::CCRenderTexture::visit from 0xd6a504 to 0xd6a5a4 (160 bytes)
//
// 2 xrefs:
// > ??> @ 0x5e8d0
// > ??> @ 0x1527960
//
// 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:56 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::visit(__int64 this)
{
__int64 v1; // x19
cocos2d::CCGridBase *v2; // x0
cocos2d::CCGridBase *v3; // x0
if ( *(_BYTE *)(this + 286) )
{
v1 = this;
kmGLPushMatrix();
v2 = *(cocos2d::CCGridBase **)(v1 + 200);
if ( v2 && *((_BYTE *)v2 + 56) )
{
cocos2d::CCGridBase::beforeDraw(v2);
cocos2d::CCNode::transformAncestors(v1);
}
cocos2d::CCNode::transform((cocos2d::CCNode *)v1);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 320) + 752LL))(*(_QWORD *)(v1 + 320));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 744LL))(v1);
v3 = *(cocos2d::CCGridBase **)(v1 + 200);
if ( v3 )
{
if ( *((_BYTE *)v3 + 56) )
cocos2d::CCGridBase::afterDraw(v3, (cocos2d::CCNode *)v1);
}
this = kmGLPopMatrix();
*(_DWORD *)(v1 + 48) = 0;
}
return this;
}