//
// cocos2d::CCSprite::reorderChild from 0x18008c110 to 0x18008c18c (124 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800ebab8
// > ??> @ 0x1800ebf90
// > ??> @ 0x1800ecb10
// > ??> @ 0x1801039c8
// > ??> @ 0x1801069c0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5c70
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCSprite::reorderChild(cocos2d::CCSprite *this, struct cocos2d::CCNode *a2, unsigned int a3)
{
cocos2d::CCArray::containsObject(this->m_pChildren, a2);
if ( a3 != ((unsigned int (__fastcall *)(struct cocos2d::CCNode *))a2->getZOrder)(a2) )
{
if ( this->m_pobBatchNode )
{
if ( !this->m_bReorderChildDirty )
{
((void (__fastcall *)(cocos2d::CCSprite *))this->setReorderChildDirtyRecursively)(this);
cocos2d::CCSpriteBatchNode::reorderBatch(this->m_pobBatchNode, 1);
}
}
cocos2d::CCNode::reorderChild(this, a2, a3);
}
}