//
// cocos2d::CCSprite::setDirtyRecursively from 0x5e68f8 to 0x5e693e (70 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCSprite::setDirtyRecursively(cocos2d::CCSprite *a1, bool a2)
{
cocos2d::CCSprite_vtbl *v3; // r3
cocos2d::CCArray *m_pChildren; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v7; // r4
int v8; // r0
int v9; // t1
v3 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_bRecursiveDirty = a2;
((void (*)(void))v3->setDirty)();
if ( a1->m_bHasChildren )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = data->arr;
v7 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v7 )
{
v9 = (int)*arr++;
v8 = v9;
if ( !v9 )
break;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 608))(v8, 1);
}
}
}
}
}