//
// cocos2d::CCTMXLayer::vertexZForPos from 0xdab9e4 to 0xdaba54 (112 bytes)
//
// 3 xrefs:
// > cocos2d::CCTMXLayer::setupTileSprite @ 0xdabac4
// > cocos2d::CCTMXLayer::tileAt @ 0xdac47c
// > ??> @ 0x104bc0
//
// This function is hookable on this platform (idp: arm, 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 13:08:35 +0000
//
__int64 __fastcall cocos2d::CCTMXLayer::vertexZForPos(cocos2d::CCTMXLayer *this, const cocos2d::CCPoint *a2)
{
int v2; // w2
if ( !*((_BYTE *)this + 448) )
return *((unsigned int *)this + 111);
v2 = *((_DWORD *)this + 98);
if ( !v2 )
return (unsigned int)(int)(float)-(float)(*((float *)this + 90) - *((float *)a2 + 1));
if ( v2 == 2 )
return (unsigned int)(int)(float)-(float)((float)(unsigned int)(float)(*((float *)this + 89) + *((float *)this + 90))
- (float)(*(float *)a2 + *((float *)a2 + 1)));
return 0;
}