//
// cocos2d::CCSpriteBatchNode::visit from 0x10026f830 to 0x10026f8e0 (176 bytes)
//
// 3 xrefs:
// > ??> @ 0x1008b9038
// > ??> @ 0x1009175d8
// > ??> @ 0x100941ee0
//
// 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:01:46 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::visit(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x0
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);
v5 = *(_QWORD *)(a1 + 200);
if ( v5 )
{
if ( *(_BYTE *)(v5 + 56) == 1 )
v5 = cocos2d::CCGridBase::afterDraw();
}
return kmGLPopMatrix(v5, v4);
}
return result;
}