//
// cocos2d::CCSprite::setDirtyRecursively from 0x18008f5e0 to 0x18008f657 (119 bytes)
//
// 9 xrefs:
// > ??> @ 0x1800f1da8
// > ??> @ 0x1800f2290
// > ??> @ 0x1800f2e40
// > ??> @ 0x18010a280
// > ??> @ 0x18010d298
// > ??> @ 0x180146980
// > ??> @ 0x180146990
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c000c
//
// 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 11:22:07 +0000
//
void __fastcall cocos2d::CCSprite::setDirtyRecursively(cocos2d::CCSprite *this, char a2)
{
__int64 v2; // rax
__int64 v4; // rdx
__int64 v5; // rax
unsigned int *v6; // rbx
__int64 v7; // rax
_QWORD *v8; // rbx
_QWORD *i; // rdi
v2 = *(_QWORD *)this;
*((_BYTE *)this + 377) = a2;
(*(void (**)(void))(v2 + 1048))();
if ( *((_BYTE *)this + 378) )
{
v5 = *((_QWORD *)this + 26);
if ( v5 )
{
v6 = *(unsigned int **)(v5 + 56);
v7 = *v6;
if ( (_DWORD)v7 )
{
v8 = *((_QWORD **)v6 + 2);
for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )
{
if ( !*v8 )
break;
LOBYTE(v4) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v8 + 1080LL))(*v8, v4);
}
}
}
}
}