//
// cocos2d::CCSpriteBatchNode::reorderChild from 0xb18754 to 0xb187c4 (112 bytes)
//
// 5 xrefs:
// > ??> @ 0xbc730
// > ??> @ 0x1137a10
// > ??> @ 0x1202c40
// > ??> @ 0x1218d30
// > ??> @ 0x121abb0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void cocos2d::CCSpriteBatchNode::reorderChild(cocos2d::CCSpriteBatchNode *a1, cocos2d::CCNode *a2, int a3)
{
int v5; // [xsp+28h] [xbp+28h]
if ( !a1->m_bUseChildIndex )
{
v5 = a3;
cocos2d::CCArray::containsObject(a1->m_pChildren, (cocos2d::_ccArray *)a2, *(cocos2d::CCObject **)&a3);
a3 = v5;
}
if ( a2->getZOrder(a2) != a3 )
cocos2d::CCNode::reorderChild(a1, (int)a2);
}