//
// cocos2d::CCSprite::setDirtyRecursively from 0x7f1198 to 0x7f11de (70 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:04 +0000
//
int __fastcall cocos2d::CCSprite::setDirtyRecursively(cocos2d::CCSprite *this, bool a2)
{
int v3; // r3
int result; // r0
int v5; // r3
_DWORD *v6; // r2
int *v7; // r5
int *v8; // r4
int v9; // t1
v3 = *(_DWORD *)this;
*((_BYTE *)this + 297) = a2;
result = (*(int (**)(void))(v3 + 600))();
if ( *((_BYTE *)this + 298) )
{
v5 = *((_DWORD *)this + 48);
if ( v5 )
{
v6 = *(_DWORD **)(v5 + 52);
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[*v6 - 1];
while ( v7 <= v8 )
{
v9 = *v7++;
result = v9;
if ( !v9 )
break;
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 616))(result, 1);
}
}
}
}
return result;
}