//
// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x7f2784 to 0x7f27ac (40 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x7f2866
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:05 +0000
//
int __fastcall cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(
cocos2d::CCSpriteBatchNode *this,
cocos2d::CCSprite *Object)
{
cocos2d::CCArray *v3; // r0
cocos2d::CCArray *v4; // r5
while ( 1 )
{
v3 = (cocos2d::CCArray *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)Object + 244))(Object);
v4 = v3;
if ( !v3 || !cocos2d::CCArray::count(v3) )
break;
Object = (cocos2d::CCSprite *)cocos2d::CCArray::lastObject(v4);
}
return *((_DWORD *)Object + 72);
}