//
// cocos2d::CCSprite::reorderChild from 0x18008f300 to 0x18008f37c (124 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800f1bb8
// > ??> @ 0x1800f20a0
// > ??> @ 0x1800f2c50
// > ??> @ 0x18010a090
// > ??> @ 0x18010d0a8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bff40
//
// 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::reorderChild(cocos2d::CCArray **this, struct cocos2d::CCNode *a2, unsigned int a3)
{
cocos2d::CCArray::containsObject(*(this + 26), a2);
if ( a3 != (*(unsigned int (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 96LL))(a2) )
{
if ( *(this + 46) )
{
if ( !*((_BYTE *)this + 288) )
{
(*((void (__fastcall **)(cocos2d::CCArray **))*this + 134))(this);
cocos2d::CCSpriteBatchNode::reorderBatch(*(this + 46), 1);
}
}
cocos2d::CCNode::reorderChild((cocos2d::CCNode *)this, a2, a3);
}
}