//
// cocos2d::CCRenderTexture::visit from 0x1003c0ac0 to 0x1003c0b58 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x100811c68
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCRenderTexture::visit(cocos2d::CCRenderTexture *a1)
{
cocos2d::CCGridBase *m_pGrid; // x0
__int64 v3; // x1
__int64 v4; // x0
if ( a1->m_bVisible )
{
sub_100168594();
m_pGrid = a1->m_pGrid;
if ( m_pGrid && m_pGrid->m_bActive )
{
sub_1003422EC((__int64)m_pGrid);
cocos2d::CCNode::transformAncestors(a1);
}
cocos2d::CCNode::transform(a1);
((void (__fastcall *)(cocos2d::CCSprite *))a1->m_pSprite->visit)(a1->m_pSprite);
((void (__fastcall *)(cocos2d::CCRenderTexture *))a1->draw)(a1);
v4 = (__int64)a1->m_pGrid;
if ( v4 )
{
if ( *(_BYTE *)(v4 + 56) == 1 )
v4 = sub_100342320(v4, (__int64)a1);
}
sub_1001685D8(v4, v3);
a1->m_uOrderOfArrival = 0;
}
}