//
// cocos2d::CCTMXLayer::atlasIndexForExistantZ from 0x10025afa0 to 0x10025afe4 (68 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned int __fastcall cocos2d::CCTMXLayer::atlasIndexForExistantZ(cocos2d::CCTMXLayer *a1, unsigned int a2)
{
unsigned int __key[3]; // [rsp+0h] [rbp-Ch] BYREF
__key[0] = a2;
return ((unsigned __int64)bsearch(
__key,
*(const void **)(*(_QWORD *)&a1[1].m_obAnchorPoint.y + 16LL),
**(unsigned int **)&a1[1].m_obAnchorPoint.y,
8u,
sub_10025B3C0)
- *(_QWORD *)(*(_QWORD *)&a1[1].m_obAnchorPoint.y + 16LL)) >> 3;
}