//
// cocos2d::CCSprite::setDirtyRecursively from 0xd86b50 to 0xd86bdc (140 bytes)
//
// 82 xrefs:
// > ??> @ 0x92ea8
// > ??> @ 0x1413ab0
// > ??> @ 0x1414070
// > ??> @ 0x1414e20
// > ??> @ 0x1417690
// > ??> @ 0x1417c30
// > ??> @ 0x141b550
// > ??> @ 0x141bb80
// > ??> @ 0x141d000
// > ??> @ 0x1421c30
// > ??> @ 0x14221e0
// > ??> @ 0x1423ba0
// > ??> @ 0x1424150
// > ??> @ 0x1424720
// > ??> @ 0x1429100
// > ??> @ 0x1433770
// > ??> @ 0x1433f70
// > ??> @ 0x1434560
// > ??> @ 0x1434d40
// > ??> @ 0x1435550
// > ??> @ 0x143a4e0
// > ??> @ 0x14438b0
// > ??> @ 0x14440c0
// > ??> @ 0x14448d0
// > ??> @ 0x14450e0
// > ??> @ 0x14458f0
// > ??> @ 0x1446100
// > ??> @ 0x1446910
// > ??> @ 0x1447120
// > ??> @ 0x1447900
// > ??> @ 0x1448110
// > ??> @ 0x1448920
// > ??> @ 0x1449130
// > ??> @ 0x1449940
// > ??> @ 0x144a190
// > ??> @ 0x144a9a0
// > ??> @ 0x144b1b0
// > ??> @ 0x144b9c0
// > ??> @ 0x144c1d0
// > ??> @ 0x144c9f0
// > ??> @ 0x144d200
// > ??> @ 0x144da10
// > ??> @ 0x144e220
// > ??> @ 0x144ea30
// > ??> @ 0x144f240
// > ??> @ 0x144fa50
// > ??> @ 0x1450260
// > ??> @ 0x1450a70
// > ??> @ 0x1451280
// > ??> @ 0x1451a90
// > ??> @ 0x14522a0
// > ??> @ 0x1452ab0
// > ??> @ 0x14532c0
// > ??> @ 0x1453ad0
// > ??> @ 0x14542e0
// > ??> @ 0x1454af0
// > ??> @ 0x1455300
// > ??> @ 0x1455b10
// > ??> @ 0x1456320
// > ??> @ 0x1456b30
// > ??> @ 0x1457340
// > ??> @ 0x1457b50
// > ??> @ 0x1458360
// > ??> @ 0x1458b70
// > ??> @ 0x14593a0
// > ??> @ 0x145b290
// > ??> @ 0x145b830
// > ??> @ 0x1477920
// > ??> @ 0x14799d0
// > ??> @ 0x1486e30
// > ??> @ 0x14873e0
// > ??> @ 0x1491d10
// > ??> @ 0x1497150
// > ??> @ 0x14996a0
// > ??> @ 0x14c1fd0
// > ??> @ 0x14d99d0
// > ??> @ 0x150cdf0
// > ??> @ 0x1517cb0
// > ??> @ 0x1518250
// > ??> @ 0x1518dd0
// > ??> @ 0x152e830
// > ??> @ 0x1530030
//
// 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:13 +0000
//
__int64 __fastcall cocos2d::CCSprite::setDirtyRecursively(cocos2d::CCSprite *this, unsigned __int8 a2)
{
__int64 result; // x0
unsigned int *v4; // x1
__int64 *v5; // x19
__int64 *i; // x20
*((_BYTE *)this + 377) = a2;
(*(void (__fastcall **)(cocos2d::CCSprite *, _QWORD))(*(_QWORD *)this + 1200LL))(this, a2);
result = *((unsigned __int8 *)this + 378);
if ( *((_BYTE *)this + 378) )
{
result = *((_QWORD *)this + 26);
if ( result )
{
v4 = *(unsigned int **)(result + 56);
result = *v4;
if ( (_DWORD)result )
{
v5 = *((__int64 **)v4 + 2);
for ( i = &v5[(unsigned int)result - 1];
i >= v5;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 1232LL))(result, 1) )
{
result = *v5;
if ( !*v5 )
break;
++v5;
}
}
}
}
return result;
}