//
// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0xb1792c to 0xb1797c (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0xb17a88
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0xb17b00
// > ??> @ 0x6c198
//
// 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; // x0
cocos2d::CCArray *v4; // x20
while ( 1 )
{
v3 = Object->getChildren(Object);
v4 = v3;
if ( !v3 || !(unsigned int)cocos2d::CCArray::count(v3) )
break;
Object = (cocos2d::CCSprite *)cocos2d::CCArray::lastObject(v4);
}
return Object->m_uAtlasIndex;
}