//
// cocos2d::CCSpriteBatchNode::visit from 0x100155be0 to 0x100155c73 (147 bytes)
//
// 4 xrefs:
// > ??> @ 0x100ac67a0
// > ??> @ 0x100af05c0
// > ??> @ 0x100b6a9d0
// > ??> @ 0x100b86f30
//
// 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:25:04 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::visit(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
__int64 v4; // rdi
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 80LL))(*(_QWORD *)(a1 + 328));
if ( (_DWORD)result && *(_BYTE *)(a1 + 286) == 1 )
{
kmGLPushMatrix();
v3 = *(_QWORD *)(a1 + 200);
if ( v3 && *(_BYTE *)(v3 + 56) == 1 )
{
cocos2d::CCGridBase::beforeDraw();
cocos2d::CCNode::transformAncestors(a1);
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 600LL))(a1);
cocos2d::CCNode::transform(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 744LL))(a1);
v4 = *(_QWORD *)(a1 + 200);
if ( v4 )
{
if ( *(_BYTE *)(v4 + 56) == 1 )
cocos2d::CCGridBase::afterDraw(v4, a1);
}
return kmGLPopMatrix();
}
return result;
}