//
// cocos2d::CCRenderTexture::visit from 0x1006c8d40 to 0x1006c8dc7 (135 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b8f2b0
//
// This function is hookable on this platform (idp: pc, 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 12:35:35 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::visit(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
__int64 result; // rax
if ( *(_BYTE *)(a1 + 286) == 1 )
{
kmGLPushMatrix();
v2 = *(_QWORD *)(a1 + 200);
if ( v2 && *(_BYTE *)(v2 + 56) == 1 )
{
cocos2d::CCGridBase::beforeDraw(v2);
cocos2d::CCNode::transformAncestors(a1);
}
cocos2d::CCNode::transform(a1);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 320) + 752LL))(*(_QWORD *)(a1 + 320));
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 744LL))(a1);
v3 = *(_QWORD *)(a1 + 200);
if ( v3 )
{
if ( *(_BYTE *)(v3 + 56) == 1 )
cocos2d::CCGridBase::afterDraw(v3, a1);
}
result = kmGLPopMatrix(v3);
*(_DWORD *)(a1 + 48) = 0;
}
return result;
}