//
// cocos2d::CCRenderTexture::visit from 0x1004677f0 to 0x100467888 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x10096adc0
//
// 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:05:33 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::visit(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x1
__int64 v4; // x0
if ( *(_BYTE *)(result + 286) == 1 )
{
v1 = result;
kmGLPushMatrix();
v2 = *(_QWORD *)(v1 + 200);
if ( v2 && *(_BYTE *)(v2 + 56) == 1 )
{
cocos2d::CCGridBase::beforeDraw(v2);
cocos2d::CCNode::transformAncestors(v1);
}
cocos2d::CCNode::transform(v1);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 320) + 752LL))(*(_QWORD *)(v1 + 320));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 744LL))(v1);
v4 = *(_QWORD *)(v1 + 200);
if ( v4 )
{
if ( *(_BYTE *)(v4 + 56) == 1 )
v4 = cocos2d::CCGridBase::afterDraw(v4, v1);
}
result = kmGLPopMatrix(v4, v3);
*(_DWORD *)(v1 + 48) = 0;
}
return result;
}