//
// cocos2d::CCSprite::reorderChild from 0xd87bc0 to 0xd87c60 (160 bytes)
//
// 83 xrefs:
// > cocos2d::CCSprite::addChild @ 0xd87bbc
// > ??> @ 0xd5f70
// > ??> @ 0x1413830
// > ??> @ 0x1413df0
// > ??> @ 0x1414ba0
// > ??> @ 0x1417410
// > ??> @ 0x14179b0
// > ??> @ 0x141b2d0
// > ??> @ 0x141b900
// > ??> @ 0x141cd80
// > ??> @ 0x14219b0
// > ??> @ 0x1421f60
// > ??> @ 0x1423920
// > ??> @ 0x1423ed0
// > ??> @ 0x14244a0
// > ??> @ 0x1428e80
// > ??> @ 0x14334f0
// > ??> @ 0x1433cf0
// > ??> @ 0x14342e0
// > ??> @ 0x1434ac0
// > ??> @ 0x14352d0
// > ??> @ 0x143a260
// > ??> @ 0x1443630
// > ??> @ 0x1443e40
// > ??> @ 0x1444650
// > ??> @ 0x1444e60
// > ??> @ 0x1445670
// > ??> @ 0x1445e80
// > ??> @ 0x1446690
// > ??> @ 0x1446ea0
// > ??> @ 0x1447680
// > ??> @ 0x1447e90
// > ??> @ 0x14486a0
// > ??> @ 0x1448eb0
// > ??> @ 0x14496c0
// > ??> @ 0x1449f10
// > ??> @ 0x144a720
// > ??> @ 0x144af30
// > ??> @ 0x144b740
// > ??> @ 0x144bf50
// > ??> @ 0x144c770
// > ??> @ 0x144cf80
// > ??> @ 0x144d790
// > ??> @ 0x144dfa0
// > ??> @ 0x144e7b0
// > ??> @ 0x144efc0
// > ??> @ 0x144f7d0
// > ??> @ 0x144ffe0
// > ??> @ 0x14507f0
// > ??> @ 0x1451000
// > ??> @ 0x1451810
// > ??> @ 0x1452020
// > ??> @ 0x1452830
// > ??> @ 0x1453040
// > ??> @ 0x1453850
// > ??> @ 0x1454060
// > ??> @ 0x1454870
// > ??> @ 0x1455080
// > ??> @ 0x1455890
// > ??> @ 0x14560a0
// > ??> @ 0x14568b0
// > ??> @ 0x14570c0
// > ??> @ 0x14578d0
// > ??> @ 0x14580e0
// > ??> @ 0x14588f0
// > ??> @ 0x1459120
// > ??> @ 0x145b010
// > ??> @ 0x145b5b0
// > ??> @ 0x14776a0
// > ??> @ 0x1479750
// > ??> @ 0x1486bb0
// > ??> @ 0x1487160
// > ??> @ 0x1491a90
// > ??> @ 0x1496ed0
// > ??> @ 0x1499420
// > ??> @ 0x14c1d50
// > ??> @ 0x14d9750
// > ??> @ 0x150cb70
// > ??> @ 0x1517a30
// > ??> @ 0x1517fd0
// > ??> @ 0x1518b50
// > ??> @ 0x152e5b0
// > ??> @ 0x152fdb0
//
// 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::reorderChild(cocos2d::CCArray **this, cocos2d::CCNode *a2, unsigned int a3)
{
__int64 result; // x0
cocos2d::CCArray::containsObject(*(this + 26), a2);
result = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 104LL))(a2);
if ( (_DWORD)result != a3 )
{
if ( *(this + 46) && !*((_BYTE *)this + 288) )
{
(*((void (__fastcall **)(cocos2d::CCArray **))*this + 153))(this);
cocos2d::CCSpriteBatchNode::reorderBatch(*(this + 46), 1);
return cocos2d::CCNode::reorderChild((cocos2d::CCNode *)this, a2, a3);
}
else
{
return cocos2d::CCNode::reorderChild((cocos2d::CCNode *)this, a2, a3);
}
}
return result;
}