//
// cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild from 0x100156d60 to 0x100156db6 (86 bytes)
//
// 0 xrefs:
//
// 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 12:25:04 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(__int64 a1, unsigned int *a2)
{
unsigned int *v2; // rbx
__int64 i; // rax
__int64 v4; // r14
v2 = a2;
for ( i = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 488LL))(a2);
i;
i = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v2 + 488LL))(v2) )
{
v4 = i;
if ( !(unsigned int)sub_1007FEF90(i) )
break;
v2 = (unsigned int *)sub_1007FF000(v4);
}
return v2[90];
}