//
// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x1800916e0 to 0x18009173d (93 bytes)
//
// 4 xrefs:
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x1800913b0
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x18009142b
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c02a0
//
// This function is hookable on this platform (idp: pc, 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 11:22:08 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(
cocos2d::CCSpriteBatchNode *this,
struct cocos2d::CCSprite *a2)
{
struct cocos2d::CCObject *Object; // rbx
cocos2d::CCArray *i; // rdi
Object = a2;
for ( i = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 480LL))(a2);
i;
i = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)Object + 480LL))(Object) )
{
if ( !(unsigned int)cocos2d::CCArray::count(i) )
break;
Object = cocos2d::CCArray::lastObject(i);
}
return *((unsigned int *)Object + 90);
}