//
// cocos2d::CCTMXLayer::atlasIndexForExistantZ from 0x1800af740 to 0x1800af78d (77 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2388
//
// 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:19 +0000
//
unsigned __int64 __fastcall cocos2d::CCTMXLayer::atlasIndexForExistantZ(cocos2d::CCTMXLayer *this, int a2)
{
int Key; // [rsp+48h] [rbp+10h] BYREF
Key = a2;
return ((unsigned __int64)bsearch(
&Key,
*(const void **)(*((_QWORD *)this + 59) + 16LL),
**((unsigned int **)this + 59),
8u,
CompareFunction)
- *(_QWORD *)(*((_QWORD *)this + 59) + 16LL)) >> 3;
}