//
// cocos2d::CCSpriteBatchNode::visit from 0xd885f8 to 0xd886a4 (172 bytes)
//
// 5 xrefs:
// > ??> @ 0xb7400
// > ??> @ 0x1415200
// > ??> @ 0x1518670
// > ??> @ 0x152ec30
// > ??> @ 0x1530c90
//
// 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:08:14 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::visit(cocos2d::CCSpriteBatchNode *this)
{
__int64 result; // x0
cocos2d::CCGridBase *v3; // x0
cocos2d::CCGridBase *v4; // x0
result = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41));
if ( (_DWORD)result )
{
result = *((unsigned __int8 *)this + 286);
if ( *((_BYTE *)this + 286) )
{
kmGLPushMatrix();
v3 = *((cocos2d::CCGridBase **)this + 25);
if ( v3 && *((_BYTE *)v3 + 56) )
{
cocos2d::CCGridBase::beforeDraw(v3);
cocos2d::CCNode::transformAncestors((__int64)this);
}
(*(void (__fastcall **)(cocos2d::CCSpriteBatchNode *))(*(_QWORD *)this + 600LL))(this);
cocos2d::CCNode::transform(this);
(*(void (__fastcall **)(cocos2d::CCSpriteBatchNode *))(*(_QWORD *)this + 744LL))(this);
v4 = *((cocos2d::CCGridBase **)this + 25);
if ( v4 )
{
if ( *((_BYTE *)v4 + 56) )
cocos2d::CCGridBase::afterDraw(v4, this);
}
return kmGLPopMatrix();
}
}
return result;
}