//
// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x18008e4b0 to 0x18008e50d (93 bytes)
//
// 4 xrefs:
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e18d
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18008e208
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5fe8
//
// 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
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(
cocos2d::CCSpriteBatchNode *this,
struct cocos2d::CCSprite *a2)
{
struct cocos2d::CCSprite *Object; // rbx
cocos2d::CCArray *i; // rdi
Object = a2;
for ( i = (cocos2d::CCArray *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getChildren)(a2);
i;
i = (cocos2d::CCArray *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))Object->getChildren)(Object) )
{
if ( !(unsigned int)cocos2d::CCArray::count(i) )
break;
Object = (struct cocos2d::CCSprite *)cocos2d::CCArray::lastObject(i);
}
return Object->m_uAtlasIndex;
}