//
// cocos2d::CCTMXLayer::atlasIndexForExistantZ from 0x100244f30 to 0x100244f74 (68 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:27:19 +0000
//
unsigned __int64 __fastcall cocos2d::CCTMXLayer::atlasIndexForExistantZ(__int64 a1, int a2)
{
_DWORD __key[3]; // [rsp+0h] [rbp-Ch] BYREF
__key[0] = a2;
return ((unsigned __int64)bsearch(
__key,
*(const void **)(*(_QWORD *)(a1 + 464) + 16LL),
**(unsigned int **)(a1 + 464),
8u,
sub_100245350)
- *(_QWORD *)(*(_QWORD *)(a1 + 464) + 16LL)) >> 3;
}