//
// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x5e7ee0 to 0x5e7f08 (40 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x5e7fc2
//
// 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
//
unsigned int cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(
cocos2d::CCSpriteBatchNode *a1,
cocos2d::CCSprite *Object)
{
cocos2d::CCArray *v3; // r0
cocos2d::CCArray *v4; // r5
while ( 1 )
{
v3 = Object->getChildren(Object);
v4 = v3;
if ( !v3 || !cocos2d::CCArray::count(v3) )
break;
Object = (cocos2d::CCSprite *)cocos2d::CCArray::lastObject(v4);
}
return Object->m_uAtlasIndex;
}