//
// cocos2d::CCSprite::reorderChild from 0xb166e4 to 0xb16784 (160 bytes)
//
// 81 xrefs:
// > cocos2d::CCSprite::addChild @ 0xb166e0
// > ??> @ 0xa2c18
// > ??> @ 0x1136130
// > ??> @ 0x11366e0
// > ??> @ 0x1137460
// > ??> @ 0x11395b0
// > ??> @ 0x1139b40
// > ??> @ 0x113cdc0
// > ??> @ 0x113d3e0
// > ??> @ 0x113e810
// > ??> @ 0x1142d40
// > ??> @ 0x11432e0
// > ??> @ 0x1144c30
// > ??> @ 0x11451d0
// > ??> @ 0x1149610
// > ??> @ 0x1152920
// > ??> @ 0x1153110
// > ??> @ 0x11536f0
// > ??> @ 0x1153ec0
// > ??> @ 0x11546c0
// > ??> @ 0x1159960
// > ??> @ 0x1162070
// > ??> @ 0x1162870
// > ??> @ 0x1163070
// > ??> @ 0x1163870
// > ??> @ 0x1164070
// > ??> @ 0x1164870
// > ??> @ 0x1165070
// > ??> @ 0x1165870
// > ??> @ 0x1166040
// > ??> @ 0x1166840
// > ??> @ 0x1167040
// > ??> @ 0x1167840
// > ??> @ 0x1168040
// > ??> @ 0x1168880
// > ??> @ 0x1169080
// > ??> @ 0x1169880
// > ??> @ 0x116a080
// > ??> @ 0x116a880
// > ??> @ 0x116b090
// > ??> @ 0x116b890
// > ??> @ 0x116c090
// > ??> @ 0x116c890
// > ??> @ 0x116d090
// > ??> @ 0x116d890
// > ??> @ 0x116e090
// > ??> @ 0x116e890
// > ??> @ 0x116f090
// > ??> @ 0x116f890
// > ??> @ 0x1170090
// > ??> @ 0x1170890
// > ??> @ 0x1171090
// > ??> @ 0x1171890
// > ??> @ 0x1172090
// > ??> @ 0x1172890
// > ??> @ 0x1173090
// > ??> @ 0x1173890
// > ??> @ 0x1174090
// > ??> @ 0x1174890
// > ??> @ 0x1175090
// > ??> @ 0x1175890
// > ??> @ 0x1176090
// > ??> @ 0x1176890
// > ??> @ 0x11770b0
// > ??> @ 0x1178f00
// > ??> @ 0x1179490
// > ??> @ 0x1192520
// > ??> @ 0x1194210
// > ??> @ 0x11a0de0
// > ??> @ 0x11a1380
// > ??> @ 0x11aa900
// > ??> @ 0x11b02c0
// > ??> @ 0x11b25c0
// > ??> @ 0x11d9d20
// > ??> @ 0x11ed5d0
// > ??> @ 0x11f7320
// > ??> @ 0x12020c0
// > ??> @ 0x1202650
// > ??> @ 0x12031b0
// > ??> @ 0x1218760
// > ??> @ 0x1219d90
//
// 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::CCSprite::reorderChild(cocos2d::CCSprite *a1, cocos2d::CCNode *a2, int a3)
{
cocos2d::CCArray::containsObject(a1->m_pChildren, (cocos2d::_ccArray *)a2, *(cocos2d::CCObject **)&a3);
if ( a2->getZOrder(a2) != a3 )
{
if ( a1->m_pobBatchNode && !a1->m_bReorderChildDirty )
{
a1->setReorderChildDirtyRecursively(a1);
cocos2d::CCSpriteBatchNode::reorderBatch(a1->m_pobBatchNode, 1);
cocos2d::CCNode::reorderChild(a1, (int)a2);
}
else
{
cocos2d::CCNode::reorderChild(a1, (int)a2);
}
}
}