//
// cocos2d::CCTMXLayer::vertexZForPos from 0x100244b10 to 0x100244b89 (121 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
//
__int64 __fastcall cocos2d::CCTMXLayer::vertexZForPos(__int64 a1, float *a2)
{
int v2; // ecx
__int64 result; // rax
if ( *(_BYTE *)(a1 + 448) != 1 )
return *(unsigned int *)(a1 + 444);
v2 = *(_DWORD *)(a1 + 392);
if ( !v2 )
return (unsigned int)(int)(float)-(float)(*(float *)(a1 + 360) - a2[1]);
result = 0;
if ( v2 == 2 )
return (unsigned int)(int)(float)-(float)((float)(int)(float)(*(float *)(a1 + 356) + *(float *)(a1 + 360))
- (float)(*a2 + a2[1]));
return result;
}