//
// cocos2d::CCSprite::setReorderChildDirtyRecursively from 0xd86ad8 to 0xd86b50 (120 bytes)
//
// 82 xrefs:
// > ??> @ 0x7f7c8
// > ??> @ 0x1413aa8
// > ??> @ 0x1414068
// > ??> @ 0x1414e18
// > ??> @ 0x1417688
// > ??> @ 0x1417c28
// > ??> @ 0x141b548
// > ??> @ 0x141bb78
// > ??> @ 0x141cff8
// > ??> @ 0x1421c28
// > ??> @ 0x14221d8
// > ??> @ 0x1423b98
// > ??> @ 0x1424148
// > ??> @ 0x1424718
// > ??> @ 0x14290f8
// > ??> @ 0x1433768
// > ??> @ 0x1433f68
// > ??> @ 0x1434558
// > ??> @ 0x1434d38
// > ??> @ 0x1435548
// > ??> @ 0x143a4d8
// > ??> @ 0x14438a8
// > ??> @ 0x14440b8
// > ??> @ 0x14448c8
// > ??> @ 0x14450d8
// > ??> @ 0x14458e8
// > ??> @ 0x14460f8
// > ??> @ 0x1446908
// > ??> @ 0x1447118
// > ??> @ 0x14478f8
// > ??> @ 0x1448108
// > ??> @ 0x1448918
// > ??> @ 0x1449128
// > ??> @ 0x1449938
// > ??> @ 0x144a188
// > ??> @ 0x144a998
// > ??> @ 0x144b1a8
// > ??> @ 0x144b9b8
// > ??> @ 0x144c1c8
// > ??> @ 0x144c9e8
// > ??> @ 0x144d1f8
// > ??> @ 0x144da08
// > ??> @ 0x144e218
// > ??> @ 0x144ea28
// > ??> @ 0x144f238
// > ??> @ 0x144fa48
// > ??> @ 0x1450258
// > ??> @ 0x1450a68
// > ??> @ 0x1451278
// > ??> @ 0x1451a88
// > ??> @ 0x1452298
// > ??> @ 0x1452aa8
// > ??> @ 0x14532b8
// > ??> @ 0x1453ac8
// > ??> @ 0x14542d8
// > ??> @ 0x1454ae8
// > ??> @ 0x14552f8
// > ??> @ 0x1455b08
// > ??> @ 0x1456318
// > ??> @ 0x1456b28
// > ??> @ 0x1457338
// > ??> @ 0x1457b48
// > ??> @ 0x1458358
// > ??> @ 0x1458b68
// > ??> @ 0x1459398
// > ??> @ 0x145b288
// > ??> @ 0x145b828
// > ??> @ 0x1477918
// > ??> @ 0x14799c8
// > ??> @ 0x1486e28
// > ??> @ 0x14873d8
// > ??> @ 0x1491d08
// > ??> @ 0x1497148
// > ??> @ 0x1499698
// > ??> @ 0x14c1fc8
// > ??> @ 0x14d99c8
// > ??> @ 0x150cde8
// > ??> @ 0x1517ca8
// > ??> @ 0x1518248
// > ??> @ 0x1518dc8
// > ??> @ 0x152e828
// > ??> @ 0x1530028
//
// 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::setReorderChildDirtyRecursively(__int64 this)
{
__int64 v1; // x19
__int64 v2; // x20
if ( !*(_BYTE *)(this + 288) )
{
v1 = *(_QWORD *)(this + 216);
*(_BYTE *)(this + 288) = 1;
if ( v1 )
{
v2 = this;
this = *(_QWORD *)(this + 368);
if ( v1 != this )
{
do
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 1224LL))(v1);
this = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 512LL))(v1);
v1 = this;
}
while ( this && this != *(_QWORD *)(v2 + 368) );
}
}
}
return this;
}