//
// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0xd88e0c to 0xd88e5c (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0xd88f68
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0xd88fe0
// > ??> @ 0x920b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:14 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(
cocos2d::CCSpriteBatchNode *this,
cocos2d::CCSprite *Object)
{
cocos2d::CCArray *v3; // x0
cocos2d::CCArray *v4; // x20
while ( 1 )
{
v3 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)Object + 488LL))(Object);
v4 = v3;
if ( !v3 || !(unsigned int)cocos2d::CCArray::count(v3) )
break;
Object = (cocos2d::CCSprite *)cocos2d::CCArray::lastObject(v4);
}
return *((unsigned int *)Object + 90);
}